Zubrag.com
July 06, 2020, 12:04:02 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Returning to login.php displays a blank page  (Read 10204 times)
jon
Newbie
*
Posts: 9


« on: February 14, 2008, 09:20:16 PM »

Hi, and thanks for the great script!  It's working perfectly for me except for 1 problem.

After login, which redirects to a user page, upon returning to login.php -- by either clicking a direct link or the browser's back button -- a totally blank page is all that's displayed.  To see the login page again, I have to quit and relaunch the browser (it's the same on all browsers).

The post Going back to login.php after a person has logged in deals with a similar issue, but that solution merely results in an endless loop of redirects, which causes my browser to freak out.

I want users to be able to revisit the login page as often as they wish.  Is there a way to work this out?

Thanks very much for any help.

Logged
jon
Newbie
*
Posts: 9


« Reply #1 on: February 17, 2008, 05:12:01 PM »

I've figured most of this out myself.

I've discovered that in order to see the login page after a user has logged in, the user must first log out.  But the logout link I've read of in these forums leads to unusual results.

Linking to "http://mysite.com/login.php?logout=1" does cause logout, but it redirects to www.example.com (I'm not using this address as an example; that's the address it actually redirects to).  I've solved this peculiarity by changing part of line 38 on login.php from LOGOUT_URL to 'http://mysite.com/login.php' so that login.php is the page that's redirected to upon logging out.

Now I have my main link to the login page as "http://mysite.com/login.php?logout=1" so that the link causes login.php to display regardless of whether or not a user is already logged in.  There's only 1 part I haven't yet solved.

When a user logs in, they are redirected to their user page.  If the user then hits the browser's back button, the login page is now blank.  I'd like hitting the back button to cause login.php to again be displayed.

I'm pursuing this issue at a new posting, Automatic user logout when clicking on login.php.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC