| | |
Redirecting user to a login page
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Mar 2005
Posts: 1
Reputation:
Solved Threads: 0
Hi,
I want to know if there is a way to prevent users from manually typing in the URL and entering the page after they have already signed out?
I was able to make the back button disabled.
Let's say if they have already click logout and when they click back, it won't go anywhere, which is what I want.
But, if they manually type in the url address, it will take them to that page. What I want to do is after they logout and whenever they try to type the url, it should not take them to that page, but instead to the login page.
is this possible? if yes, how?
Thank you for your help.
I want to know if there is a way to prevent users from manually typing in the URL and entering the page after they have already signed out?
I was able to make the back button disabled.
Let's say if they have already click logout and when they click back, it won't go anywhere, which is what I want.
But, if they manually type in the url address, it will take them to that page. What I want to do is after they logout and whenever they try to type the url, it should not take them to that page, but instead to the login page.
is this possible? if yes, how?
Thank you for your help.
•
•
Join Date: Jan 2008
Posts: 2,052
Reputation:
Solved Threads: 118
it has to do with caching. your page is cached on the clients computer, that is why they are able to get the page. if your server-side is asp.net then you can control caching settings for both client and server side. but i cant say anything about php and jsp for that matter.
Due to lack of freedom of speech, i no longer post on this website.
•
•
Join Date: Jul 2009
Posts: 13
Reputation:
Solved Threads: 3
Cache control is done via headers in PHP as far as I know..
Found something in the PHP documentation:
Found something in the PHP documentation:
php Syntax (Toggle Plain Text)
<?PHP header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); header( 'Cache-Control: no-store, no-cache, must-revalidate' ); header( 'Cache-Control: post-check=0, pre-check=0', false ); header( 'Pragma: no-cache' ); ?>
![]() |
Similar Threads
- Updated : Simple ASP.Net Login Page (ASP.NET)
- Simple ASP.Net Login Page using C# (C#)
- Help!!!! User Login page with java (Java)
- Simple ASP.Net Login Page (Using VB.Net) (ASP.NET)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: prevent user from going back or disable submit
- Next Thread: Reload a element with swf
| Thread Tools | Search this Thread |
acid2 ajax ajaxcode ajaxhelp animate array automatically beta box bug calendar captchaformproblem cart checkbox child class codes column cookies createrange() css cursor decimal design disablefirebug dom download dropdown editor element engine enter error events explorer ext file firefox focus forms frameworks google gwt html htmlform ie8 iframe image() images index internet java javascript jawascriptruntimeerror jquery jsf jsfile jsp jump listbox masterpage math menu microsoft mimic mp4 object onmouseoutdivproblem onmouseover onreadystatechange parent pdf php player post problem progressbar prototype redirect regex runtime scale scroll search select session shopping size sql text textarea toggle w3c web website window windowofwords windowsxp wysiwyg \n






