HighDots Forums  

session variables 4 ever :)

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss session variables 4 ever :) in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dennis Masselink
 
Posts: n/a

Default session variables 4 ever :) - 08-01-2003 , 07:32 AM






Session variables....
they experies after 20 min or so.... is this determined on the server, or
can i instruct the server to keep the session variables for as long as the
duration as the browser stays open?

Cheers
Dennis Masselink



Reply With Quote
  #2  
Old   
Julian Roberts
 
Posts: n/a

Default Re: session variables 4 ever :) - 08-01-2003 , 07:33 AM






Use cookies instead.

--
Jules
-----
Charon Cart 3
http://www.charon.co.uk/charoncart



Dennis Masselink wrote:
Quote:
Session variables....
they experies after 20 min or so.... is this determined on the
server, or can i instruct the server to keep the session variables
for as long as the duration as the browser stays open?

Cheers
Dennis Masselink



Reply With Quote
  #3  
Old   
Jim PKP
 
Posts: n/a

Default Re: session variables 4 ever :) - 08-01-2003 , 07:58 AM



In article <bgdigg$3pr$1 (AT) forums (DOT) macromedia.com>, dema-spam (AT) trap (DOT) com
says...
Quote:
Session variables....
they experies after 20 min or so.... is this determined on the server, or
can i instruct the server to keep the session variables for as long as the
duration as the browser stays open?


I think its usually set to 20 minutes automatically,
but you can change that using Session.Expires = X

--
Quote:
jim (AT) nospam (DOT) com |
"Insert Humorous Quote Here"


Reply With Quote
  #4  
Old   
Joe {RoastHorse}
 
Posts: n/a

Default Re: session variables 4 ever :) - 08-01-2003 , 08:21 AM



session variables are stored on the server till you instruct them to be
destroyed. the session id is stored in a cookie (usually). a cookie by
default is destroyed when you close the window but you can set this to a
value in your script.

joe



"Dennis Masselink" <dema-spam (AT) trap (DOT) com> wrote

Quote:
Session variables....
they experies after 20 min or so.... is this determined on the server, or
can i instruct the server to keep the session variables for as long as the
duration as the browser stays open?

Cheers
Dennis Masselink





Reply With Quote
  #5  
Old   
Julian Roberts
 
Posts: n/a

Default Re: session variables 4 ever :) - 08-01-2003 , 08:25 AM



Well, I suppose that you could have:

Session.Timeout=360

But this means that every variable for every user is stored for 6 hours -
even after they leave the site, if you don't abandon the session.

--
Jules
-----
Charon Cart 3
http://www.charon.co.uk/charoncart



Dennis Masselink wrote:
Quote:
Thanks Jules for your reply, but uhm....

this is not what i wanted to hear...
I've already built the site and i'm not very happy if i'm going to
have to change my code...

So....? Session time out is determined on the server?

Thanks


"Julian Roberts" <newsgroup (AT) charon (DOT) co.uk> schreef in bericht
news:bgdj8a$507$1 (AT) forums (DOT) macromedia.com...
Use cookies instead.

--
Jules
-----
Charon Cart 3
http://www.charon.co.uk/charoncart



Dennis Masselink wrote:
Session variables....
they experies after 20 min or so.... is this determined on the
server, or can i instruct the server to keep the session variables
for as long as the duration as the browser stays open?

Cheers
Dennis Masselink



Reply With Quote
  #6  
Old   
Dennis Masselink
 
Posts: n/a

Default Re: session variables 4 ever :) - 08-01-2003 , 09:14 AM



Well... that's just fine by me...

Where do i place this script?

"Julian Roberts" <newsgroup (AT) charon (DOT) co.uk> schreef in bericht
news:bgdm8t$ar1$1 (AT) forums (DOT) macromedia.com...
Quote:
Well, I suppose that you could have:

Session.Timeout=360

But this means that every variable for every user is stored for 6 hours -
even after they leave the site, if you don't abandon the session.

--
Jules
-----
Charon Cart 3
http://www.charon.co.uk/charoncart



Dennis Masselink wrote:
Thanks Jules for your reply, but uhm....

this is not what i wanted to hear...
I've already built the site and i'm not very happy if i'm going to
have to change my code...

So....? Session time out is determined on the server?

Thanks


"Julian Roberts" <newsgroup (AT) charon (DOT) co.uk> schreef in bericht
news:bgdj8a$507$1 (AT) forums (DOT) macromedia.com...
Use cookies instead.

--
Jules
-----
Charon Cart 3
http://www.charon.co.uk/charoncart



Dennis Masselink wrote:
Session variables....
they experies after 20 min or so.... is this determined on the
server, or can i instruct the server to keep the session variables
for as long as the duration as the browser stays open?

Cheers
Dennis Masselink





Reply With Quote
  #7  
Old   
Paul Taylor
 
Posts: n/a

Default Re: session variables 4 ever :) - 08-01-2003 , 01:25 PM



On Fri, 1 Aug 2003 12:58:27 +0100, Jim PKP <jim (AT) nospam (DOT) com> wrote:

Quote:
In article <bgdigg$3pr$1 (AT) forums (DOT) macromedia.com>, dema-spam (AT) trap (DOT) com
says...
Session variables....
they experies after 20 min or so.... is this determined on the server, or
can i instruct the server to keep the session variables for as long as the
duration as the browser stays open?



I think its usually set to 20 minutes automatically,
but you can change that using Session.Expires = X
Session variables last for as long as the user is on your site -
regardless of time. They are automatically destroyed under 2
conditions - if the user leaves your site, or if the users has had a
page open with no activity for 20 minutes. They can also be
programatically destroyed.


Paul Taylor


Reply With Quote
  #8  
Old   
Dennis Masselink
 
Posts: n/a

Default Re: session variables 4 ever :) - 08-05-2003 , 05:22 AM



that;s just perfect... when people close the window i want it to be
destroyed


"Joe {RoastHorse}" <joe (AT) roast-horse (DOT) com> schreef in bericht
news:bgdlv6$a7v$1 (AT) forums (DOT) macromedia.com...
Quote:
session variables are stored on the server till you instruct them to be
destroyed. the session id is stored in a cookie (usually). a cookie by
default is destroyed when you close the window but you can set this to a
value in your script.

joe



"Dennis Masselink" <dema-spam (AT) trap (DOT) com> wrote in message
news:bgdigg$3pr$1 (AT) forums (DOT) macromedia.com...
Session variables....
they experies after 20 min or so.... is this determined on the server,
or
can i instruct the server to keep the session variables for as long as
the
duration as the browser stays open?

Cheers
Dennis Masselink







Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.