Jump to content

Log-Out Behavior??


doubledee

Recommended Posts

When Users navigate pages containing content, I store the page in...

// Set current Script Name.
$_SESSION['returnToPage'] = $_SERVER['SCRIPT_NAME'];

 

While testing, I just noticed behavior I didn't account for and could use some advice...

 

If you are logged in and on the page "Postage Meters Can Save You Money", and you click "Log Out", when you log back in, where should you be directed??

 

1.) Last page you were on (i.e. "Postage Meters Can Save You Money")??

2.) index.php ??

 

 

I would say #2, because if I "Log Out", then when I come back later and "Log In", I probably won't care where I was last.  (Versus if I am on "Page B" and I log in, then I want to immediately return to "Page B".  But that is a different scenario.)

 

What do you think?

 

It is a minor, but interesting point?!

 

 

 

Debbie

 

 

Link to comment
Share on other sites

presuming logout destroyed session ...

 

for 1. you would need to keep some record of what page they were last on prior to logout; therein making the presumption that is the page the user wants to return to upon login.

 

for 2. all logins should, for consistency in users mind, always lead to 1 certain page (MY VOTE)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.