Page 1 of 1

Hi to set and destroy Session

Posted: Thu Sep 07, 2006 6:17 am
by umapathy
Dear All,

how to set and Destroy session,
Please explain me some good example (login page and logout page).
with out sessioon i should view aparticular page


auamapathy

Posted: Thu Sep 07, 2006 6:29 am
by onion2k
The session info in the PHP manual explains setting and destroying session variables quite well. http://uk2.php.net/session .. look at the comments especially.

Posted: Thu Sep 07, 2006 8:00 am
by feyd
umapathy, you've duplicated a total of four threads. STOP or we will throw you off the board.
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:3. Do not make multiple, identical posts. This is viewed as spam and will be deleted.

Posted: Thu Sep 07, 2006 8:56 am
by feyd
This is the last warning. Use your existing thread if it's the same topic.
umapathy wrote:Dear All,

i want to ceate a login page. if the user ans password is correct . it should got main page.(i check user id and pass from mysql).and i want to logging out.
if i directly type mainpage in url. it should not got to that page ,control directely come to login page.
how can i achive this process using session.
if any one known this post fullcode like, login page.php,mainpage.php,logout.php

Thanks and Regards
Umapathy