| | |
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
- Simple ASP.Net Login Page using C# (C#)
- Updated : Simple ASP.Net Login Page (ASP.NET)
- 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 ajaxexample ajaxhelp ajaxjspservlets animate automatically beta box browser bug captchaformproblem checkbox close codes createrange() css cursor debugger decimal dependent disablefirebug dom download dropdown editor element engine enter error events explorer ext file firefox form forms frameworks getselection google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 ie8 iframe index internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsf jsp jump listbox maps masterpage math media menu microsoft mp4 object onmouseoutdivproblem onreadystatechange paypal pdf php player position problem programming progressbar prototype redirect regex runtime safari scale scriptlets search security select software sql text textarea unicode w3c window windowofwords windowsxp \n






