Scratch usually automatically logs out whenever you close your browser. This can be very annoying, especially if you do this a lot. Here's how to get around it.
REQUIREMENTS:
Google Chrome
Enabled Cookies
Step 1: Log in.
Log into Scratch normally.
Step 2: Open the dev console.
Press Ctrl+Shift+J on windows, or Command+Alt+J on mac to accomplish this.
Step 3: Copy your session id.
Type document.cookie in the dev console and press return/enter.
It should contain PHPSESSID=[your session id here];
Copy this session id to your clipboard.
Step 4: Stick your session id.
Type this in your dev console:
document.cookie = 'PHPSESSID=[your session id here]; expires='+new Date(new Date().getFullYear()+1, new Date().getMonth(), new Date().getDate(), 0, 0, 0, 0).toUTCString();
Press enter/return.
Done.
Offline
The server-side code that the Scratch Team could implement is simply calling the session_regenerate_id() function on a few random pages.
2222nd post!
Last edited by jvvg (2012-09-28 23:50:16)
Offline
That doesn't happen to me; I stay logged in all the time (except occasionally it does that on my iPod).
Offline
I think I've been logged into Scratch for at least two or three months before. Maybe more.
Offline
It doesn't log me out...
Offline
I think it would be redundant if I said that it doesn't log me out.
Besides, the cookie is not the only part in the story. You can have a cookie that lasts for years, but if the session stored on the servers has been deleted, it won't really help.
Offline
Maybe it sometimes logs you out, depending on something about the computer or browser you are using.
Offline