[web2py] Re: session id is set to none with login_bare
I this still an open issue? If so, please open a ticket on google code. On Friday, 5 July 2013 10:45:06 UTC-5, Vikas Gupta wrote: The client is an adroid app. I am getting the session_id as none in this function def myTestUserLoginFunc(): import json import gluon.contrib.simplejson import gluon.contrib.simplejson as sj data = sj.loads(request.body.read()) myemail=data['email'] mypassword=data['password'] logged_user=auth.login_bare(myemail, mypassword.encode('utf8')) if (auth.is_logged_in() == True): logger.debug(I am logged in.) else: logger.debug(I am not logged in.) logger.debug(session.session_id = %s %session.session_id) logger.debug(response session id - %s % response.session_id) logger.debug(session file %s % response.session_file_name) logger.debug(session id name %s % response.session_id_name) logger.debug(session status %s % response.session_status) ret= if (logged_user == False): ret=sj.dumps([invalid]) else: ret=response.session_id if auth.is_logged_in(): ret=session.session_id else: logger.debug(not logged in) if (ret == None): ret=DummySessionId return ret user gets successfully logged in, but the session id, session_status and session_file_name are always set to None. sessionid_id_name is set to session_id_appname user record is like this - Row {'first_name': 'v g', 'last_name': '', 'id': 3, 'registration_id': '', 'social_login': False, 'reset_password_key': '1373017333-f58bd8f5-d560-40c6-8117-c3815a93fc06', 'password': 'pbkdf2(1000,20,sha512)$a9e9d5525d1daac6$a8e63a319b8e8113f41a2bf3a8cd2c818499f899', 'registration_key': '', 'email': 'myem...@gmail.com javascript:'} -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: session id is set to none with login_bare
Version 2.6.0-development+timestamp.2013.07.08.01.37.54 El martes, 9 de julio de 2013 02:35:24 UTC-3, Vikas Gupta escribió: anyone? kinda critical for me... Both with login_bare and without it (having logged in with an Auth form), with Firefox 21 and using the browser as client I get: I am logged in. session.session_id = None response session id - 127.0.0.1-fdb14c48-e64c-4037-bfdf-164ade920c04 session file None session id name session_id_sessionid session status None What is the expected output? -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: session id is set to none with login_bare
Note, there is no session.session_id or response.session_status, and response.session_file_name should be response.session_filename. On Tuesday, July 9, 2013 9:23:57 AM UTC-4, Alan Etkin wrote: Version 2.6.0-development+timestamp.2013.07.08.01.37.54 El martes, 9 de julio de 2013 02:35:24 UTC-3, Vikas Gupta escribió: anyone? kinda critical for me... Both with login_bare and without it (having logged in with an Auth form), with Firefox 21 and using the browser as client I get: I am logged in. session.session_id = None response session id - 127.0.0.1-fdb14c48-e64c-4037-bfdf-164ade920c04 session file None session id name session_id_sessionid session status None What is the expected output? -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: session id is set to none with login_bare
For me the issue is that this also prints None, so no session_id logger.debug(session id - %s % response.session_id) -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: session id is set to none with login_bare
anyone? kinda critical for me... On Friday, July 5, 2013 9:15:06 PM UTC+5:30, Vikas Gupta wrote: The client is an adroid app. I am getting the session_id as none in this function def myTestUserLoginFunc(): import json import gluon.contrib.simplejson import gluon.contrib.simplejson as sj data = sj.loads(request.body.read()) myemail=data['email'] mypassword=data['password'] logged_user=auth.login_bare(myemail, mypassword.encode('utf8')) if (auth.is_logged_in() == True): logger.debug(I am logged in.) else: logger.debug(I am not logged in.) logger.debug(session.session_id = %s %session.session_id) logger.debug(response session id - %s % response.session_id) logger.debug(session file %s % response.session_file_name) logger.debug(session id name %s % response.session_id_name) logger.debug(session status %s % response.session_status) ret= if (logged_user == False): ret=sj.dumps([invalid]) else: ret=response.session_id if auth.is_logged_in(): ret=session.session_id else: logger.debug(not logged in) if (ret == None): ret=DummySessionId return ret user gets successfully logged in, but the session id, session_status and session_file_name are always set to None. sessionid_id_name is set to session_id_appname user record is like this - Row {'first_name': 'v g', 'last_name': '', 'id': 3, 'registration_id': '', 'social_login': False, 'reset_password_key': '1373017333-f58bd8f5-d560-40c6-8117-c3815a93fc06', 'password': 'pbkdf2(1000,20,sha512)$a9e9d5525d1daac6$a8e63a319b8e8113f41a2bf3a8cd2c818499f899', 'registration_key': '', 'email': 'myemai...@gmail.com'} -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.