![]() |
Login and Logout using Sessions and Cookies
1 Attachment(s)
This is a very simple code and hardly requires any explanations. :eek: If you need any put the post here.
functions.php PHP Code:
PHP Code:
PHP Code:
|
Re: Login and Logout using Sessions and Cookies
Hello Mr. Shabbir
I m grateful for this code but can you help me learning php more.. i have joined a forum www.tufat.com/foums and found it very helpful. but i need your guidence to learn more about php. Regards |
Re: Login and Logout using Sessions and Cookies
Quote:
|
Re: Login and Logout using Sessions and Cookies
Thanks and great job :P
|
Re: Login and Logout using Sessions and Cookies
Hello Mr. Shabbir
The code works well, but after logging out, somebody could hit the back button and see any data on the pages. How difficult would it be to prevent anyong seeing the pages after a logout just like the web sites for all the banks? |
Re: Login and Logout using Sessions and Cookies
For that probably you need to be clearing the cache because thats not the actual page but the cache version and applying some metas can even prevent that.
|
Re: Login and Logout using Sessions and Cookies
does anyone know how to add mutiple accounts to this script?
|
Re: Login and Logout using Sessions and Cookies
*ps. if mutiple accounts are allowed, is it possible to have an echo that shows who is logged in right now? thank you very much, Ted.
|
Re: Login and Logout using Sessions and Cookies
Multiple sessions cannot be added to this script, only one user per session/per browser can be logged in at a time.
|
Re: Login and Logout using Sessions and Cookies
oh, okay thanks!
|
| All times are GMT +5.5. The time now is 19:41. |