The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Login Logoff Again, Navigation Issues
SBH
post Aug 26 2015, 07:29 AM
Post #1


Member
***

Group: Members
Posts: 82
Joined: 6-February 15
Member No.: 22,158



This may be way too basic, but how do I after logging into a website, ensure that either the back button in my browser is disabled, or that should I hit the back button, I'm not taken back to the login page again.

PS: I'm using PHP with PDO.

Thanks.

Regards,
SBH
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
CharlesEF
post Aug 26 2015, 02:06 PM
Post #2


Programming Fanatic
********

Group: Members
Posts: 1,981
Joined: 27-April 13
From: Edinburg, Texas
Member No.: 19,088



I have never done this but a google search for 'do not cache page' should point you in the right direction.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
SBH
post Aug 28 2015, 12:53 AM
Post #3


Member
***

Group: Members
Posts: 82
Joined: 6-February 15
Member No.: 22,158



QUOTE(CharlesEF @ Aug 26 2015, 02:06 PM) *

I have never done this but a google search for 'do not cache page' should point you in the right direction.

Did that, and copied a no-cache code to include it in the PHP script of the page that loads after logging in. Yet, the back button still loads the login page (i.e. the one containing the user name & password fields). Wonder what I'm doing wrong.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
CharlesEF
post Aug 28 2015, 01:36 AM
Post #4


Programming Fanatic
********

Group: Members
Posts: 1,981
Joined: 27-April 13
From: Edinburg, Texas
Member No.: 19,088



If you want, check out these javascript solutions here, here, here and here.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
SBH
post Aug 28 2015, 02:43 AM
Post #5


Member
***

Group: Members
Posts: 82
Joined: 6-February 15
Member No.: 22,158



QUOTE(CharlesEF @ Aug 28 2015, 01:36 AM) *

If you want, check out these javascript solutions here, here, here and here.

Ok will do. Thanks. Although one of them I checked was from stackoverflow...
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 18th April 2024 - 10:48 PM