send2cgeo icon indicating copy to clipboard operation
send2cgeo copied to clipboard

Session lifetime

Open ririko5834 opened this issue 1 year ago • 6 comments

Hello, how long is the session active? I used send2cgeo in my browser like last month and now I opened it today and it showed that my browser is not registered, I had to register it and enter pin from the cgeo app on my phone again. I didn't change phone or browser, or didn't clear cookies or anything like that. Is there any expiration of the session?

ririko5834 avatar Jul 13 '24 11:07 ririko5834

IMHO the session should be valid as long as the cookie keeps stored in your local browser. Maybe you have some cookie deletion policy in your browser?

Lineflyer avatar Jul 13 '24 19:07 Lineflyer

image which one it is? the second one which has 1 month expiration?

my settings image

ririko5834 avatar Jul 14 '24 11:07 ririko5834

That's a really annoying part of the script. Cookies expires or get deleted by browsers. There are two issues about that: #12 and #48

If someone makes the server side code public, I'll try to address this issue. It shouldn't be that hard to store a token in the server side code and the script for authentication.

capoaira avatar Jul 14 '24 18:07 capoaira

Cookie expires in a month. The plan to make code public is long ongoing, but it's merged with out (old) website and it runs in a sandbox, just the send2 part.

I'll see what I can do.

mucek4 avatar Jul 14 '24 18:07 mucek4

The new cookie should be now valid for 1 year. I haven't had time to look into the rest of the code.

mucek4 avatar Jul 16 '24 19:07 mucek4

Why the server side code isnt opensource?

ririko5834 avatar Jul 19 '24 11:07 ririko5834

I just opened a new issue regarding the cookie lifetime which still seems to be 30 days only. See #150

Lineflyer avatar Aug 17 '25 20:08 Lineflyer