Thanks for the info, I just made the changes to my site and now the macs
work great using sesssions instead of cookies.
BTW has anyone else had any difficulty setting complex cookies on OSX?
Jose
-------- Original Message --------
Subject: Re: [Webware-discuss] sessions
From: Aaron Held <aaron@...>
Date: Wed, January 29, 2003 10:53 am
To: jose@...
I don't know a good tutorial, but the session class is here:
http://webware.sourceforge.net/Webware-
0.8b1/WebKit/Docs/Source/Summaries/Session.py.html
and you can access a session from your servlet via:
self.session()
ie:
#test for a session var:
if (self.session().hasValue('sortOn')):
# pull in a session var (any python object)
sortOn=self.session().value('sortOn')
#pull in a seeson var w/ a default of '0'
sortOn=self.session().value('sortOn',0)
#set a value
username='aaron'
seld.session().setValue('name',username)
#delete a value
self.session().delValue('name')
#get sessionID
SID = self.session().identifier()
jose@... wrote:
> Hi all,
>
> Could someone please point me to a good tutorial on how to use
> sessions. I have looked at the example docs and the only one that
> uses session is really pretty simple. Specifically we have a
> website that uses cookies (I set the cookie to a dictionary) that I
> would like to convert over to sessions becuase osx is not setting my
> cookie correctly and is making the page fail. I am hoping that
> sessions will work where cookies fail. Thanks in advance for any
> and all help
>
> Jose
>
>
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> Webware-discuss mailing list
> Webware-discuss@...
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
|