Previous Thread
Next Thread
Print Thread
Rate Thread
#271697 03/30/2004 12:23 AM
Joined: Mar 2003
Posts: 215
Junior Member
Junior Member
Offline
Joined: Mar 2003
Posts: 215
I noticed that when I have "Main Index" as the start page, what happens is when logging in you get displayed a blanked page that has a 1 second delay on it.

<html>
<head>
<meta http-equiv="Refresh" content="1;url={$config['phpurl']}/$main?Cat=$Cat">
</head>
<body>
</body>
</html>

Why not add an include file to this so that the screen doesn't go blank for that short second?

Or why isn't header("Location: {$config['phpurl']}/$main?Cat=$Cat"); exit; used instead?

I get the 1 second pause here, so I assume this is in verisons past 6.2 like this too?

Sponsored Links
romka #271698 03/30/2004 11:01 AM
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
When you login, cookies have to be set properly before the next page is loaded, otherwise the next script won't actually know that you're logged in since cookies only get set when the headers are sent.

Including the file won't quite work because the same code is used when you go to your "My Home" setting after you've logged in, so programatically speaking this doesn't work.

Using header() works on some servers but not all of them. I used to do this, but roughly 50% of the time it doesn't set the cookie properly before the script being called by header() is loaded. So when that script is loaded it doesn't know your logged in.

In 6.5 I've dropped the meta refresh down to 0 so the redirect is more instantaneous.


UBB.threads Developer
Sally #271699 03/30/2004 11:48 AM
Joined: Mar 2003
Posts: 215
Junior Member
Junior Member
Offline
Joined: Mar 2003
Posts: 215
Ok, the cookies not setting properly all the time makes sense.

So in that case, just adding text to the blank page that says "Loading Forums..." or "Logging In..." instead of the blank while screen is my modification suggestion.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)