ACDB  Log In
Search
Random
Light/Dark Theme
Site Map
Happy Birthday Riko Aida
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.

Go Top

Affiliates

Support ACDB by visiting our affiliates

Links

Contribute

This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use. Learn more [close]

Who Board | New Thread

Yesterday 11:23 pm
Anonymous
Who is this?

Latest Comments


Dabi

can i date this dude - Kesshuu

Quotes

I made them myself. - King

How rude! - King

I just happened to see them make it! - King

Anime Art Academy Free Taster Course

Increase your fun by becoming a member today! Login | Register

10 fun things to do on ACDB

Advertise - Share - Mascot - Contact - Discord - API - Wiki - Site Map - Change Log - Twitter - Instagram - Coffee! - Privacy Policy - Rules
All images are copyright of their respective owners. Copyright © Goral Software

Rendered in 3.9 ms. R-13-W-2-M-3170.25 KB