Tagged Questions
0
votes
1answer
10 views
Authentication and getting a session token from Quickblox in Python
I'm doing it through the REST API. Two questions
1) I want to push some existing data to Quickblox custom object. How many REST calls do I need? (I am not really clear about the whole state of affair ...
-1
votes
1answer
21 views
How to get a callback notification when Http session expired
I am using python bottle with Beaker to manage Http sessions.
So far I know how to set beaker session timeout parameters, and the sessions are cleaned automatically once expired, but I need to do ...
2
votes
1answer
40 views
Django User Sessions, Cookies and Timeout
I'm working with a Django application and my current goal is to keep track of the user session with cookies. I have a feeling that, as always, my understanding is a bit off with regards to how I do ...
1
vote
2answers
45 views
testing flask sql alchemy
I have a working web application on Flask with SqlAlchemy for moderation of news, it has some api methods to handle moderation requests, such as approve, deny currently selected news, list them, etc. ...
2
votes
1answer
43 views
Does Django flush the request.session object on User Login?
I am setting a session variable in my Django application, like this:
request.session['something'] = True
After this, I am redirecting the user to Login (via facebook - django-social-auth). After ...
0
votes
1answer
50 views
Bottle + Apache + WSGI + Sessions
I'm trying to use sessions on a small CMS that I'm working on.
I'm testing, and I able to run sessions nicely using bottle as server. Code below:
# test.session.py
import bottle
from ...
0
votes
1answer
51 views
Limit web page to 1 session per page Django
[Use case]
Our django application utilizes AJAX and allows multiple writers and editor to view and edit a single article.
Our Django application has the following session management requirements.
...
-1
votes
2answers
234 views
global name 'request' is not defined [closed]
When using the example "views.py without functions.py", it is working fine and session is being checked alright, so it returns the username.
But, when using the second example, with the functions.py, ...
1
vote
0answers
43 views
Python Requests - detecting session timeouts
In the amazing Python Requests lib, does it have the capability to automatically detect timeouts or cookie expiries? I'm logging into a page to retrieve some Json, and don't want to waste bandwidth by ...
0
votes
1answer
54 views
reading flask.session with angularjs
Is there a way to access something in session set with flask.session from angular.js on the client side? I am trying to pass data and store to session in the same call from flask and be able to read ...
0
votes
2answers
36 views
Syntax error at “def” in Django views using sessions
This is in an app in a Django project, in the views file for that app. The app is installed in settings.py, but it throws the error before it should be calling the view up.
I am getting an error at ...
2
votes
1answer
54 views
python urllib.open(url) but return history data
I use python's urllib library for checking the update of one webpage every 5 sec.
But after I run the program a few hours, It seems that the urllib.open(url) just returns the outdated data.It usually ...
0
votes
1answer
49 views
How to recognize user login when log in comes from cookie?
In our project we give the users points for every day they visit the site.
The issue is that the user doesn't always log in in an explicit way (e.g. submitting login form), but often when he comes ...
0
votes
1answer
46 views
Why do Sqlalchemy Session.close not log “rollback”?
# I've set echo=True when doing create_engine, so I can see all the sql stmt
# DBSession is ScopeSession(thread_local) and autocommit is False
session = DBSession()
session.add(somemodel)
#
try:
...
0
votes
2answers
57 views
FOSS solution for storing web sessions
Context
I am developing a simple web application (written in python/pyramid) with an underlying http service as data store and with a partner integration by using backend http communication. This web ...
2
votes
2answers
79 views
Implementing a “one vote per day” system in pyramid based on cookies
Background:
I have the core functionality of a very simple vote-based site setup and working well in pyramid utilizing a sqlite database. The last requirement for this application is to allow only ...
0
votes
1answer
47 views
How to save a dictionary having value as an object
How to save this kind of dictionary in mongiengine.
{'xnFH8XCJiwMRFu8A': <dropbox.session.OAuthToken object at 0x2e4efd0>,
'867s6bnwbg3kc':<dropbox.session.OAuthToken object at ...
3
votes
1answer
27 views
Is there a way to perform a join across multiple sessions in sqlalchemy?
If I have multiple sessions to different databases, is there a way to perform a join across them in one query?
For instance, I'm integrating two programs, with a table in the middle to translate id's ...
0
votes
0answers
66 views
How to share data between Django templates and view methods without using sessions?
I'm working on a web application (Python/Django), and I need to share python sets and dictionaries between rendered pages.
From now, I was using Django sessions to transfer those data structures. ...
0
votes
1answer
45 views
Empty sessions in Django
I'm unable to write session keys and values to the session file using Django 1.5, Python 2.7 (64 bits), and Windows OS. I set the SESSION_ENGINE variable as django.contrib.sessions.backends.file, and ...
0
votes
1answer
73 views
Flask: Saving session data manually
I have a Flask application that uses an ajax request, and this request should give a true/false response. The user enters an authorization code, and if the authorization code matches what is needed or ...
0
votes
1answer
55 views
Why SQLAlchemy Session.filter().update/delete raise read-only exception when using RoutingSession?
The following is my config, slave is read-only:
engines = {
'master': create_engine( ...
0
votes
1answer
59 views
gae-sessions 'thread._local' object has no attribute 'current_session'
I'm trying to get gae-sessions working, but am having an issue.
I've logged inside of appengine_config.py and inside of webapp_add_wsgi_middleware and it is being called.
I've logged inside the libs ...
0
votes
1answer
41 views
GAE Python - appengine_utilities doesn't save session variable
I am trying to save a GET variable with the user for at least the session. My app is running on Google App Engine and I am using the Sessions module from appengine_utilities to save the variable, ...
0
votes
1answer
54 views
creating a session with shopify API Error : malicious login (Python)
I am tring to get the Shop detais as well as i have to put a script tag in to the store .
Folowing all the standerd API calls i have constructed this :
scope = ["write_products", "read_orders"]
...
0
votes
1answer
26 views
Transfer session from script to firefox
I'm trying to solve the following problem:
I have a python script that opens a webpage, gets a jsessionid, then posts username and password and the jsessionid and receives back a new jsessionid along ...
0
votes
0answers
33 views
Faceted search with session dictionary in Python
Using web.py I am trying to build a website able to search the autoscout24.de using its API (autoscout24 is a german car sales website). I am now able to get some results from the API and display them ...
0
votes
1answer
96 views
How to combine php & python code in Python
I’m looking for a way to combine my PHP code into my Python file. Maybe strange, but for me it would be quite helpfull. I simply want this part of PHP-code in Python because I don’t know how to ...
2
votes
2answers
138 views
flask unit test: send cookies after modifying the session
I'm writing some unit tests for my flask application and I need to simulate a request from a logged in user (I'm using flask login).
I learned here that to do this I need to modify the session and ...
0
votes
1answer
40 views
request libary python, return session in method
Trying to return a request libary session in a method in python...
Would seem pretty simple, my script works fine and then I clean it up into a class and methods and it will not work, seems the ...