How does PHP manage session? -


i thought php stores session id cookie , identifies user based on cookie. cookie expires browser closed.

i implementing remember me feature, , logged in remember me. closed browser , opened again, did not login through cookie stored, instead, session variables still holding login information. seems strange.

so question is, how these session variables still hold values though php session id cookie wasn't there?

that of time browser dependent. browsers latest version of ie, no such problems seen. after browser closed, session variables destroyed. in google chrome doesn't happen. moreover, session variables url sensitive. if created session , using url http://www.example.com these session variables limited specific address only. if again open page url http://example.com see there no session variables time though destination same both pages. keep in mind redirect page according url used store session variables. more related information on session variable problems, visit link


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -