Hi, Jonathan,

I presume that you're in a DirectAction method when trying to do this. If so, check the following WOAction method (WOAction is WODirectAction's superclass):

public WOSession existingSession()
Restores the session based on the request. If the request did not have a session ID or the session ID referred to a non-existent session, then this method returns null. To determine if a session failed to restore, check the request's session ID to see if it non- null and if so, call this method to check its result.

Returns:
a WOSession object which represents periods during which access to a WebObjects application and its resources is granted to a particular client

If you're not in a DirectAction method, look at WOContext's method:

public boolean hasSession()
Returns true if a session exists for the receiving context, false otherwise.

Regards,
Jerry

On Dec 14, 2006, at 9:45 PM, Jonathan Miller wrote:

Hi,

Is there a way to check to see if the session ID stored in a cookie is still valid? Can this be done without creating a new session?

Thanks in advance

Jon
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/jerrywwalker% 40gmail.com

This email sent to [EMAIL PROTECTED]


--
__ Jerry W. Walker,
WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems

    [EMAIL PROTECTED]
    203 278-4085        office



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to