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
Hi to set and destroy Session
Moderator: General Moderators
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.
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
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.
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
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