Welcome Guest, Not a member yet? Register   Sign In
session and ajax
#1

[eluser]otn3m3m[/eluser]
I have created a login page that uses jquery. When a user logins in i save the user in session.

If I do a page refresh immediately after logging in, the page shows me as not logged in.

If i navigate to another page immediately after loggeing in and do a page refresh the login info says i'm still logged in.

I think i read somewhere you need to do page refresh inorder to save the info into a session. Is this true and is there a way around it?

Thanks
#2

[eluser]otn3m3m[/eluser]
One thing to note..i do a check after user has logged in to see if the user is logged in. In other words after loggingin i check to see if the user is logged in. and if so show the logged in view.

So after logging in, the success view is displayed, but refreshing the page causes it to lose the session.

so it does set the seesion after logining in. it just loses it after a page refresh.




Theme © iAndrew 2016 - Forum software by © MyBB