View unanswered posts | View active topics
|
Page 1 of 1
|
[ 9 posts ] |
|
| Author |
Message |
|
Haara
|
Post subject: Length of session Posted: Thu Oct 12, 2006 2:33 pm |
|
Joined: Wed May 03, 2006 10:20 am Location: Gothenburg, Sweden
|
|
Does anyone know how long the logged in session last from your last active thing* done here?
*posting, browsing or anything that doesn't involve just having the site open...
I ask this since I havn't been able to find that answer by myself.
I have experienced beeing logged out automaticaly some times when having this site open at the same time I browse other sites and when coming back here I have to logg in again...
I do not think of this as a problem, I just want to know for how long I can "stay aaway", but stil beeing logged in!
|
|
| Top |
|
 |
|
Scott Bedard
|
Post subject: Posted: Thu Oct 12, 2006 2:42 pm |
|
Joined: Sun Jul 09, 2006 2:59 am Location: Glastonbury, CT (USA)
|
A session with an undetermined time will last (i think) a default time of 5 minutes. But if you wanted to make it longer, you could use the following php code.
Code: /* X = session time, in minutes */ session_cache_expire(X);
session_start();
For more info on sessions though, check php.net
_________________ Master Pentultimate Auction
|
|
| Top |
|
 |
|
Haara
|
Post subject: Posted: Thu Oct 12, 2006 2:58 pm |
|
Joined: Wed May 03, 2006 10:20 am Location: Gothenburg, Sweden
|
Well, I was thinking about this site, and I don't think it is a good thing to medle with it. By two reasons...
1 I am not good at such things, meaning high risk something goes wrong
2 Wouldn't think it is appreciated to change such a thing
Anyway, I have a feeling that it is a bit more than five minutes here...
|
|
| Top |
|
 |
|
away
|
Post subject: Posted: Thu Oct 12, 2006 3:49 pm |
|
Joined: Tue Oct 07, 2003 10:00 pm
|
|
I think you forgot
3 I don't have the necessary access.
I could be wrong, but I don't think so... this ought to be a server side parameter. Scott, are you sure Haara can do this here?
|
|
| Top |
|
 |
|
Haara
|
Post subject: Posted: Thu Oct 12, 2006 4:36 pm |
|
Joined: Wed May 03, 2006 10:20 am Location: Gothenburg, Sweden
|
Stefan Pochmann wrote: I think you forgot
3 I don't have the necessary access.
Right on the spot, I just didn't thought of that when responding earlier...
|
|
| Top |
|
 |
|
Scott Bedard
|
Post subject: Posted: Thu Oct 12, 2006 7:00 pm |
|
Joined: Sun Jul 09, 2006 2:59 am Location: Glastonbury, CT (USA)
|
|
No, Haara cant, only Sandy can. You'd need FTP access and a decent mind of PHP. Also some knowledge of the phpBB system couldn't hurt.
_________________ Master Pentultimate Auction
|
|
| Top |
|
 |
|
Bryan
|
Post subject: Posted: Thu Oct 12, 2006 7:57 pm |
|
Joined: Sun Jun 13, 2004 12:45 pm Location: Rochester, MN
|
|
Is there a reason you can't do the "Keep me logged in"? Or are you doing this from public terminals?
Also, shell access would be much better to develop than FTP, because you can easily check things from the command line that you can't from a web browser.
|
|
| Top |
|
 |
|
Haara
|
Post subject: Posted: Thu Oct 12, 2006 11:59 pm |
|
Joined: Wed May 03, 2006 10:20 am Location: Gothenburg, Sweden
|
blogan wrote: Is there a reason you can't do the "Keep me logged in"? Or are you doing this from public terminals?
Well, I can use that feature, but the point of the question wasn't to point out any problem I had or so, it was just a thing i liked to know...
|
|
| Top |
|
 |
|
perfredlund
|
Post subject: Posted: Sat Oct 21, 2006 7:34 am |
|
Joined: Fri May 06, 2005 10:13 am Location: Norway
|
Hi
There is really only one good way to have eternal *sessions*. And that is to have no sessions at all. But i guess this issue is not really about sessions, not technically. The issue is about being authenticated persistently which is a slightly different thing.
There's 3 ways that i can think of right now for being authenticated over a period of time.
1 - store user authentication information in a server-side session
2 - store user authentication information in a server-side database (or file)
3 - use client-side cookies
Or some combination. Anything clientside is a bit controversial from a security perspective
Cheers!
-Per
_________________ "Life is what happens to you while you are busy making other plans" -John Lennon, Beautiful Boy
|
|
| Top |
|
 |
|
Page 1 of 1
|
[ 9 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 1 guest |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|
|