My $_SESSION["""] variables are expiring!

My $_SESSION["""] variables are expiring!

am 29.10.2005 02:59:34 von Ron Piggott

My $_SESSION['variable'] 's are expiring. How do I find what my web
site hosting company has their length set to so I may have them
adjusted?

They just expired while I was actively using the associated scripts.
Once the web site hosting computer lost track of the user session number
generated when I logged in the script couldn't access my settings!

Ron

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: My $_SESSION["""] variables are expiring!

am 29.10.2005 13:49:00 von Ron Piggott

Charles I am using Firefox already. This is why I was wondering how I
can find out what the server settings are with my web site hosting
company and see if their end expired the variables. When this happened
I had used the web based application I am developing less than 20
seconds prior. Ron

On Sat, 2005-29-10 at 01:43 -0400, Charles Morris wrote:
>
> if you are using session cookies (memory resident in the browser)
> some versions of browsers including IE and the safari have problems
> with this.
>
> if this is the problem, it times out after like 10 - 15 seconds.
>
> try it in firefox to see if this is the problem.
> (firefox has no problem)
>
>
> On 10/28/05, Ron Piggott wrote:
> My $_SESSION['variable'] 's are expiring. How do I find what
> my web
> site hosting company has their length set to so I may have
> them
> adjusted?
>
> They just expired while I was actively using the associated
> scripts.
> Once the web site hosting computer lost track of the user
> session number
> generated when I logged in the script couldn't access my
> settings!
>
> Ron
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
> --
> ------------------------------------------------------------ -------------------
> Charles Morris
> cmorris@cs.odu.edu
>
> CS Systems Group Old Dominion University
> http://www.cs.odu.edu/~cmorris
> http://www.cs.odu.edu/cspage/systemstaff.html
> ------------------------------------------------------------ ------------------
> "Caution! Under no circumstances confuse the mesh with the interleave
> operator, except under confusing circumstances!" -- the INTERCAL
> manual
> They that give up essential liberty to obtain
> a little temporary safety deserve neither
> liberty nor safety. -- Benjamin Franklin, 1759
> The only secure computer is one that's unplugged, locked in a
> safe, and buried 20 feet under the ground in a secret location...
> and i'm not even too sure about that one"--Dennis Huges, FBI.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: My $_SESSION["""] variables are expiring!

am 29.10.2005 14:54:15 von Bastien Koert

You need to have them check the php.ini file. This holds all the info about
the installation. If It might be that the browser is not accepting the
session cookies, which is a possibility. The options then are to:

1. store the session id in the URL
2. place the session id in a hidden field
3. try placing it in a regular cookie.

You may want to check your browser setting to ensure that the browser
accepts cookies from your site

Bastien


>From: Ron Piggott
>Reply-To: ron.php@actsministries.org
>To: PHP DB
>Subject: [PHP-DB] My $_SESSION['''] variables are expiring!
>Date: Fri, 28 Oct 2005 20:59:34 -0400
>
>My $_SESSION['variable'] 's are expiring. How do I find what my web
>site hosting company has their length set to so I may have them
>adjusted?
>
>They just expired while I was actively using the associated scripts.
>Once the web site hosting computer lost track of the user session number
>generated when I logged in the script couldn't access my settings!
>
>Ron
>
>--
>PHP Database Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: My $_SESSION["""] variables are expiring!

am 29.10.2005 16:20:57 von Ron Piggott

I will ask them to check the php.ini file.

The session variables are working ... as in I have been in my account
and made changes (such as updated my address) so I know the computer is
keeping my $_SESSION['account_reference'] until *something* happens and
it it expires. Then account_reference goes from my reference number to
0 because it has become unassigned.

Ron

You need to have them check the php.ini file. This holds all the info
about
the installation. If It might be that the browser is not accepting the
session cookies, which is a possibility. The options then are to:

1. store the session id in the URL
2. place the session id in a hidden field
3. try placing it in a regular cookie.

You may want to check your browser setting to ensure that the browser
accepts cookies from your site

Bastien

On Fri, 2005-28-10 at 20:59 -0400, Ron Piggott wrote:
> My $_SESSION['variable'] 's are expiring. How do I find what my web
> site hosting company has their length set to so I may have them
> adjusted?
>
> They just expired while I was actively using the associated scripts.
> Once the web site hosting computer lost track of the user session number
> generated when I logged in the script couldn't access my settings!
>
> Ron
--

ron.piggott@actsministries.org
www.actsministrieschristianevangelism.org

Acts Ministries Christian Evangelism
"Where People Matter"
12 Burton Street
Belleville, Ontario, Canada
K8P 1E6

In Belleville Phone: (613) 967-0032
In North America Call Toll Free: (866) ACTS-MIN

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: Re: My $_SESSION["""] variables are expiring!

am 29.10.2005 23:09:33 von Ron Piggott

The tech support which hosts my web site e-mailed me that the php.ini
file has $_SESSION[''] variables set for 19 minutes. It is a server
wide variable which they do not want to change their system setting for.

Do any of you know if there is a setting that may be modified for just
my web site?

My other approach is this: Is there a way through a PHP command that I
myself may clear the $_SESSION[''] variables and then re-instate them
immediately after clearing them so my web site hosting command will not
come into effect until it is truly needed?

The way I have this set up is that index.php keeps on being called with
a syntax such as
index.php?request=function

Therefore I could cancel the $_SESSION[''] variables each time index.php
is accessed and then immediately re-create it ...

There is only one variable I am carrying in there and it is the account
which is logged in. I could easily put it to another variable such as
$account = $_SESSION['active_account'];
#insert command to close session variable
#now we are going to start a new session
$_SESSION['active_account'] = $account;

Is there any way of doing this?

Ron



On Sat, 2005-29-10 at 12:02 -0400, Bastien Koert wrote:
> Just a thought, maybe when you are checking for the session object that the
> ! (not) operator is missed
>
> if (isset($_SESSION) { $_SESSION['some_var'] = 0; }
>
> where it should be
>
> if (!isset($_SESSION) { $_SESSION['some_var'] = 0; }
>
> B
>
>
>
> >From: Ron Piggott
> >Reply-To: ron.piggott@actsministries.org
> >To: bastien_k@hotmail.com, PHP DB
> >Subject: [PHP-DB] Re: My $_SESSION['''] variables are expiring!
> >Date: Sat, 29 Oct 2005 10:20:57 -0400
> >
> >I will ask them to check the php.ini file.
> >
> >The session variables are working ... as in I have been in my account
> >and made changes (such as updated my address) so I know the computer is
> >keeping my $_SESSION['account_reference'] until *something* happens and
> >it it expires. Then account_reference goes from my reference number to
> >0 because it has become unassigned.
> >
> >Ron
> >
> >You need to have them check the php.ini file. This holds all the info
> >about
> >the installation. If It might be that the browser is not accepting the
> >session cookies, which is a possibility. The options then are to:
> >
> >1. store the session id in the URL
> >2. place the session id in a hidden field
> >3. try placing it in a regular cookie.
> >
> >You may want to check your browser setting to ensure that the browser
> >accepts cookies from your site
> >
> >Bastien
> >
> >On Fri, 2005-28-10 at 20:59 -0400, Ron Piggott wrote:
> > > My $_SESSION['variable'] 's are expiring. How do I find what my web
> > > site hosting company has their length set to so I may have them
> > > adjusted?
> > >
> > > They just expired while I was actively using the associated scripts.
> > > Once the web site hosting computer lost track of the user session number
> > > generated when I logged in the script couldn't access my settings!
> > >
> > > Ron
> >--
> >
> >ron.piggott@actsministries.org
> >www.actsministrieschristianevangelism.org
> >
> >Acts Ministries Christian Evangelism
> >"Where People Matter"
> >12 Burton Street
> >Belleville, Ontario, Canada
> >K8P 1E6
> >
> >In Belleville Phone: (613) 967-0032
> >In North America Call Toll Free: (866) ACTS-MIN
> >
> >--
> >PHP Database Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
--

ron.piggott@actsministries.org
www.actsministrieschristianevangelism.org

Acts Ministries Christian Evangelism
"Where People Matter"
12 Burton Street
Belleville, Ontario, Canada
K8P 1E6

In Belleville Phone: (613) 967-0032
In North America Call Toll Free: (866) ACTS-MIN

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: My $_SESSION["""] variables are expiring!

am 30.10.2005 00:13:10 von Ron Piggott

session_regenerate_id works. Ron

On Sat, 2005-29-10 at 16:23 -0500, Jackson wrote:
> To my knowledge, transfering the contents of the registered variables
> to an unregistered variable and then unregistering the registered
> variable and re-registering it would work, but seems a little
> painstaking. You may have luck with the session_regenerate_id
> function, which should rewrite the session cookie and hopefully renew
> your 19 minutes before expiration. This will only be functional as
> long as the user doesn't stay put on a given page for more than 19
> minutes though.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: My $_SESSION["""] variables are expiring!

am 30.10.2005 02:10:28 von graeme_foster

I think that you want to use ini_set() along with session.gc_maxlifetime.

graeme.

Ron Piggott wrote:

>The tech support which hosts my web site e-mailed me that the php.ini
>file has $_SESSION[''] variables set for 19 minutes. It is a server
>wide variable which they do not want to change their system setting for.
>
>Do any of you know if there is a setting that may be modified for just
>my web site?
>
>My other approach is this: Is there a way through a PHP command that I
>myself may clear the $_SESSION[''] variables and then re-instate them
>immediately after clearing them so my web site hosting command will not
>come into effect until it is truly needed?
>
>The way I have this set up is that index.php keeps on being called with
>a syntax such as
>index.php?request=function
>
>Therefore I could cancel the $_SESSION[''] variables each time index.php
>is accessed and then immediately re-create it ...
>
>There is only one variable I am carrying in there and it is the account
>which is logged in. I could easily put it to another variable such as
>$account = $_SESSION['active_account'];
>#insert command to close session variable
>#now we are going to start a new session
>$_SESSION['active_account'] = $account;
>
>Is there any way of doing this?
>
>Ron
>
>
>
>On Sat, 2005-29-10 at 12:02 -0400, Bastien Koert wrote:
>
>
>>Just a thought, maybe when you are checking for the session object that the
>>! (not) operator is missed
>>
>>if (isset($_SESSION) { $_SESSION['some_var'] = 0; }
>>
>>where it should be
>>
>>if (!isset($_SESSION) { $_SESSION['some_var'] = 0; }
>>
>>B
>>
>>
>>
>>
>>
>>>From: Ron Piggott
>>>Reply-To: ron.piggott@actsministries.org
>>>To: bastien_k@hotmail.com, PHP DB
>>>Subject: [PHP-DB] Re: My $_SESSION['''] variables are expiring!
>>>Date: Sat, 29 Oct 2005 10:20:57 -0400
>>>
>>>I will ask them to check the php.ini file.
>>>
>>>The session variables are working ... as in I have been in my account
>>>and made changes (such as updated my address) so I know the computer is
>>>keeping my $_SESSION['account_reference'] until *something* happens and
>>>it it expires. Then account_reference goes from my reference number to
>>>0 because it has become unassigned.
>>>
>>>Ron
>>>
>>>You need to have them check the php.ini file. This holds all the info
>>>about
>>>the installation. If It might be that the browser is not accepting the
>>>session cookies, which is a possibility. The options then are to:
>>>
>>>1. store the session id in the URL
>>>2. place the session id in a hidden field
>>>3. try placing it in a regular cookie.
>>>
>>>You may want to check your browser setting to ensure that the browser
>>>accepts cookies from your site
>>>
>>>Bastien
>>>
>>>On Fri, 2005-28-10 at 20:59 -0400, Ron Piggott wrote:
>>>
>>>
>>>>My $_SESSION['variable'] 's are expiring. How do I find what my web
>>>>site hosting company has their length set to so I may have them
>>>>adjusted?
>>>>
>>>>They just expired while I was actively using the associated scripts.
>>>>Once the web site hosting computer lost track of the user session number
>>>>generated when I logged in the script couldn't access my settings!
>>>>
>>>>Ron
>>>>
>>>>
>>>--
>>>
>>>ron.piggott@actsministries.org
>>>www.actsministrieschristianevangelism.org
>>>
>>>Acts Ministries Christian Evangelism
>>>"Where People Matter"
>>>12 Burton Street
>>>Belleville, Ontario, Canada
>>>K8P 1E6
>>>
>>>In Belleville Phone: (613) 967-0032
>>>In North America Call Toll Free: (866) ACTS-MIN
>>>
>>>--
>>>PHP Database Mailing List (http://www.php.net/)
>>>To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>>
>>>
>>
>>

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php