∞Anime ∞Female ∞Male ∞Quote
101059 Characters
×
Login | Register

I cannot sleep,

- Rem
ACDB.ca
LOGIN
ANIME
CHAR
GAMES
MOD
ACDB.ca
LOGIN
ANIME
CHARACTERS
GAMES
ADMIN
Advertisements
Report

News

Staying Logged In Dec 3, 2019 | Rei
Everyone who has had an account on ACDB has likely experienced the annoyance of having to log in again, and again, and again even when you never actually logged out yourself.

For years I have tried to solve this by looking in the wrong place.

A while back I added the "Keep Me Logged In On This Device" option that was to once and for all solve this, except it didn't.

Never understood why until I looked more closely at something I had over looked.

Cookies were being issued as Session cookies!

Which meant no matter what I had done, each time you closed your web browser you would be logged out. And with the nasty habit of today's browsers updating every 2nd day, this would get quite annoying.

Well, not any more!

Previously I called :
setcookie("SID", $cookie)

Now we use:
setcookie("SID", $cookie, time()+31556952, "/", ".animecharactersdatabase.com", TRUE);

Which will give you one year of not being logged out.

With the only exception being if you don't check the Keep Me Logged In option, you will still be logged out when your IP changes.
Advertisements


Sponsored with ♥



Sponsored with Jewels


Who's This Character Board | New Thread

08:57 am
Anonymous
Who is this ?
03:29 am
Anonymous
Who is this ?
02:29 am
Anonymous
Who is this ?
URL
Comment
Name
NSFW (18+) ?

Post a link to an image you want the Anime Characters Database Community to Identify


New Posts New Comments
Advertisements
All images are copyright of their respective owners.
Rendered in 14.2 ms. R-19-W-2-M-2111.03 KB Modified: Mon, 11 Nov 2019 14:39:59 -0500 | [Options] Copyright © 2007-2019 Goral Software

Advertisements