Login/Logout Functionality
Posted: Mon Jan 12, 2009 6:09 am
I'm building a login/logout function for an application, which should show 'login' if the session has not been started, but 'logout' if it has been started. It works fine until I move to another linked page within the application, and then the notation will only show 'login'.
I thought that the way to resolve this would be to simply apply the 'session_name();' and 'session_start();' funtions to each of the documents within the scope of the application (as I have done for both the login and logout scripts), yet this doesn't seem to have resolved the issue.
Could anyone point me in the right direction??
Thanks
I thought that the way to resolve this would be to simply apply the 'session_name();' and 'session_start();' funtions to each of the documents within the scope of the application (as I have done for both the login and logout scripts), yet this doesn't seem to have resolved the issue.
Could anyone point me in the right direction??
Thanks