# Session help

**URL:** <https://forum.kirupa.com/t/session-help/233024>\
**Category:** Uncategorized\
**Created:** [July 19, 2007, 2:44pm UTC](https://forum.kirupa.com/t/session-help/233024 "2007-07-19T14:44:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wo1olf](https://avatars.discourse-cdn.com/v4/letter/w/278dde/32.png) [@wo1olf](https://forum.kirupa.com/u/wo1olf)\
**Post date:** [July 19, 2007, 2:44pm UTC](https://forum.kirupa.com/t/session-help/233024/1 "2007-07-19T14:44:36Z")

</div>

i’ve done a cms, but i want the user to log in before they access to it. So i have a form for the logging part and another page for the cms. I taught that if used session it would be easier because that would allow the user to logout once they have finished.  
My authentication’s form work well but now i don’t know how to do in order to got to the next page if the filled information is correct and to stay on the same page if they are wrong. Also i want to come back to the loggin page once they loggout. The whole system should work like the one for email (hotmail , etc).  
Can anyone help me or if there is a tutorial that explain how to do it then let me know.
