Ok,  I'll admit it.  I was wrong. setting sessiontimeout = 30 wouldn't set
it to 30 seconds, it would set it to 30 days.


To get the proper setting, you need to do:


sessiontimout=createTimeSpan(0, 0, 30, 0)


for 30 minutes.


the createTimeSpan returns a decimal number to represent the timespan.


I got the following for different settings:


createTimeSpan(0,0,0,30) = 0.000347222222222
createTimeSpan(0,0,30,0) = 0.0208333333333
createTimeSpan(0,30,0,0) = 1.25
createTimeSpan(30,0,0,0) = 30


Must be something else.


Steve

-----Original Message-----
From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 3:55 PM
To: CF-Talk
Subject: Re: Sessions - won't stick around

I think that value is for minutes ...

But even at that .. in my application it imediately does a redirect and that
takes maybe 1 second .. so it should stick at least for that.

But I will check on that time issue (good to know anyway).

Paul Giesenhagen
QuillDesign

  ----- Original Message -----
  From: DURETTE, STEVEN J (AIT)
  To: CF-Talk
  Sent: Friday, October 10, 2003 2:52 PM
  Subject: RE: Sessions - won't stick around

  Paul,

  Just off the top of my head wouldn't the sessiontimeout="30" set the
timeout
  to 30 seconds.

  Steve

  -----Original Message-----
  From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]
  Sent: Friday, October 10, 2003 3:46 PM
  To: CF-Talk
  Subject: Sessions - won't stick around

  Has anyone ever been working with application that uses sessions and for
  some reason, your server will not hold sessions?

  All of a sudden CFMX 6.1 stopped .. i could set the session, but as soon
as
  I reloaded the page, the session was gone.

  Exampe:
  <cfset test = StructNew()>
  <cfset test.name = "Paul">

  <cfset session.sessionTest = test>

  It would output just fine .. and then if I reload the page,
  session.sessionTest was not there.

  I have this in my application.cfm file:

  <cfapplication name="siteCart" clientmanagement="no"
sessionmanagement="yes"
  setclientcookies="no" setdomaincookies="no" sessiontimeout="30">

  And in the CF Admin sessions are set to 20 minutes .. NOTHING has changed
in
  the application or CF Settings .. I have even rebooted the server.

  Very strange.. Also, I though maybe some code I put in possibly was
deleting
  the session .. but I put that sessionTest in the app and it didn't stick
  either ..

  CFMX 6.1 WindowsXP (local box).

  Thanks
  Paul Giesenhagen
  QuillDesign

    _____  

  _____  


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to