• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Running a Session routine only once, when user first logs in
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running a Session routine only once, when user first logs in


  • Subject: Re: Running a Session routine only once, when user first logs in
  • From: Jonathan Rochkind <email@hidden>
  • Date: Mon, 13 Jan 2003 11:54:35 -0600

At 10:40 AM 1/12/2003 -0500, Clayton Leitch wrote:
I have a set of session variables that are set when a user first logs in. They are set in the awake method. When the user moves from one page to another within the application, these session variables do not need to be reset. However, in WebObjects 5.2 it appears that every time the session is called the variables are set to their defaults and then the session awake method sets them back to the correct.

This doens't make sense: you are saying that your Session is not properly holding the values of it's iVars? That they are being reset to default on every single request? I haven't upgraded to WO 5.2 yet, but if WO 5.2 simply did this for everyone, we would surely have heard about this by now. It woudl be a horrible bug. So it must be something specific in your situation that is making this happen; possibly an Apple bug, but more likely a bug in your own code. You've got to figure out how/why/when the Session variables you are setting are getting re-set to their default values, becuase that's definitely not supposed to happen.


--Jonathan


I have an if-then that checks to see if the session variables are at default values. If true it executes the the routine that sets them. How do I get the session variables to stick throughout the session, without having them reset each time the session is awakened?

Thanks,
Clay
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Running a Session routine only once, when user first logs in (From: Clayton Leitch <email@hidden>)

  • Prev by Date: Re: FileUpload Component Query
  • Next by Date: Application activeSessionCount() question
  • Previous by thread: Re: Running a Session routine only once, when user first logs in
  • Next by thread: Re: Running a Session routine only once, when user first logs in
  • Index(es):
    • Date
    • Thread