471,829 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,829 software developers and data experts.

no-cache

exoskeleton
104 100+
hi dear expert..i have a problem in my log in page..how can i prevent a user to go back to log-in screen after he log-in correctly...

i already try the no-cache property or function and stl the IE back button can go back to that screen.. is there any solutions for that!
Oct 4 '06 #1
6 3533
mainul
51
Hey you can use session in this case
Oct 4 '06 #2
exoskeleton
104 100+
yes i've used session ... but i dont know how to make it not visible in the back button of the IE...after logging in...then i click back button it display "Expired Page cannot be displayed" but when i click back again, there it will go to log in page again

Hey you can use session in this case
Oct 5 '06 #3
mainul
51
Hello exoskeleton,
i am not sure about the php code to disable the IE Back button. but you can try javascript to disable the back button.

<head>
<script>
history.forward();
</script>
</head>
Oct 5 '06 #4
bevort
53
If you want to disable the back button in the browser you have to erase the history data previous to your page or open in a new browser window (will work sometimes)
Or advance to your next page after login in with the location.replace() method from javascript

Or just forget it. The user will punish himself by login in again anf again and again .......
Oct 5 '06 #5
exoskeleton
104 100+
Thank you guys... how about the php code:
header('cache-contol: no-cache')

are you familiar with it?
Oct 13 '06 #6
exoskeleton
104 100+
Its great...that's a tricky one...tnx pal

Hello exoskeleton,
i am not sure about the php code to disable the IE Back button. but you can try javascript to disable the back button.

<head>
<script>
history.forward();
</script>
</head>
Oct 13 '06 #7

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by banaticus | last post: by
59 posts views Thread by Lennart Björk | last post: by
NeoPa
reply views Thread by NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.