|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
Hi every body,
I am new to php. Can any one tell me how to implement logout sessions? I have tried using session_register() and session_unregister() and session_destroy(). But when i go back and click refresh, the page appears again. Can any one tell me why this happens? Chaitanya |
|
#2
|
||||
|
||||
|
I use the following code to make sure sessions are destroyed:
PHP Code:
That works fine for me. Make sure that you're not loading the page from a cache when you go back. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > logout sessions |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|