...PHP SESSIONS? How to check a particular user has already logged-in to the system, by using PHP SESSIONS???
For example USER tris to access "private.html" and PHP should check whether he is already logged-in to the system using SESSIONS. If he is so then send him to "private.html" OTHERWISE REDIRECT him to loggin page.
After successful login he should be AUTOMATICALL REDIRECTED to requested page.
Please give me some Sample coding for this stuff. I'll really thankful to you.
Thank you.
For example USER tris to access "private.html" and PHP should check whether he is already logged-in to the system using SESSIONS. If he is so then send him to "private.html" OTHERWISE REDIRECT him to loggin page.
After successful login he should be AUTOMATICALL REDIRECTED to requested page.
Please give me some Sample coding for this stuff. I'll really thankful to you.
Thank you.