Welcome Guest, Not a member yet? Register   Sign In
set_userdata() not work
#7

[eluser]Pakm@n[/eluser]
[quote author="InsiteFX" date="1338117785"]None of you have stated what kind of sessions you are using! Regular or Database.

1) IE hates the underscore in the session cookie name!
2) Make sure that the database session table is correct and the newest one!

Another thing to keep in mind is that cookies are not updated until a page refresh! So
if you try to do anything with a cookie before a page refresh you will not get the results
you expect!

Which is what Aken is trying to point out to you...
[/quote]


One more thing, this application works like this:
1.- The user types username and password
2.- The form is send to the validateCredentials function on the login controller
3.- If username and password are correct, the session vriable is created and then redirects to a user controller
4.- The user controller validates in it's constructor if theres a session variable or that the session variable equals 1.
5.- If the validation worked, the user controller works, otherwise it displays an error message with a link that redirects to the login form


Messages In This Thread
set_userdata() not work - by El Forum - 04-13-2012, 09:52 AM
set_userdata() not work - by El Forum - 04-13-2012, 10:43 AM
set_userdata() not work - by El Forum - 04-13-2012, 12:51 PM
set_userdata() not work - by El Forum - 05-27-2012, 01:33 AM
set_userdata() not work - by El Forum - 05-27-2012, 04:23 AM
set_userdata() not work - by El Forum - 05-27-2012, 10:27 AM
set_userdata() not work - by El Forum - 05-27-2012, 10:39 AM
set_userdata() not work - by El Forum - 05-27-2012, 11:09 AM
set_userdata() not work - by El Forum - 05-27-2012, 12:00 PM
set_userdata() not work - by El Forum - 05-27-2012, 09:22 PM
set_userdata() not work - by El Forum - 05-27-2012, 11:58 PM
set_userdata() not work - by El Forum - 05-28-2012, 04:47 AM
set_userdata() not work - by El Forum - 05-28-2012, 10:38 AM
set_userdata() not work - by El Forum - 05-28-2012, 10:59 AM
set_userdata() not work - by El Forum - 05-28-2012, 11:19 PM



Theme © iAndrew 2016 - Forum software by © MyBB