|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I would like to ask that is there any functions or methods to prevent user go back to the system page after they log out. Besides that , I also need to control the page so that user cant get into the content pages even they key in the url.. Anyone know the solution please tell me ..... Thanks
|
|
#2
|
||||
|
||||
|
Setting the page's cache and expiry time often does the trick.
This tells the browser not to cache the page. When the browser makes its second visit, it checks for a new page. If the user isn't logged in, you won't display the page. If you want to disable caching, look into the header() method... PHP Code:
There are side-effects. The browser will potentially ALWAYS hit your server for a new file. If you have many users, this will slow down your server. |
|
#3
|
||||
|
||||
|
another method would be to check for a session variable, and that variable is only set when they log in. of course this would be the same as above and make it always hit your site, and like madcow said if you have a lot of users this will slow it down more.
|
|
#4
|
|||
|
|||
|
I will try the methods that proposed by u guys .. Thanks a lot for ur all suggestion ....
![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > Control for the pages after user log out |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|