PHP Session & Cookies Interview questionn -


this 1 of question had asked in interview yesterday!

according understanding.... when user logged in in web application start session , store data in $_session array(which stored on server not on cookies)

and cookies local data when write script login & registration form, don't set cookies identify user

if session data stored on server , not in cookies,

i have own login registration system at

http://dandnayak.in/lr

1) first login 2) clear cookies 3) refresh 4) logged out without hitting logout button

how logged out of current account, when delete cookies!

$_session & $_cookies difference in case?

php sessions saved on server files name sess_some_session_id (eg: sess_vu3a4l18bkt24q5qimsav2r7d3) , some_session_id stored on cookie variable named phpsessid. when clear cookie, php not able identify session file belongs current user. why getting logged out


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -