Seeya,

Thanks for your response, but the 'BasicFrame' and 'AuthFrame' classes
are *not* frames, sorry for not explaining that. Those are just my
terms since I feel that what they're doing is "framing" content and I
dislike the term "page" for that function, since I feel that software
like Webware and Cheetah really chips away at the notion of a 'page'
anyway.

My real problem is that I can not get my code to detect session cookie
deletion. I feel like I'm missing something obvious, but I'm looking
for anyone to say, "Here it is. You log in this way and when you
delete your cookies, voila, you're just taken right back to the login
page."

In addition to my system, I also tried the login example provided with
WebKit, which had some nice ideas, but when I deleted the session
cookie in Firefox I got a worse error than the error I had been
getting ...

Waving my hands wildly in rough seas,
Greg

On Thu, 31 Mar 2005 13:32:01 -0300, michelts <[EMAIL PROTECTED]> wrote:
> Hi Greg
> 
> What is your real problem? I don't know if is your case, but Internet
> Explorer doesn't save cookies if you are on a frame (in my case an
> iframe). I need to use AutomaticPathSession=1 on the configuration.
> 
> If I open the frame on a new window all is ok...
> 
> seeya
> 
> On Thu, 31 Mar 2005 00:35:09 -0800, Greg McClure <[EMAIL PROTECTED]> wrote:
> > Argh.
> >
> > I tried it, but unfortunately trans.hasSession() doesn't seem to be
> > solving my problem.
> >
> > Here's a sample of my code, as per your suggestion:
> >
> > import lib.Config
> > from BasicFrame import BasicFrame
> >
> > class AuthFrame(BasicFrame):
> >     def awake(self, trans):
> >         BasicFrame.awake(self, trans)
> >
> >         if not trans.hasSession():
> >             try:
> >                 self.session().setValue('target', self.request().uri())
> >                 self.response().sendRedirect('login')
> >             except:
> >                 self.writeln('Could not create authenticated session.')
> >
> > If there is no session cookie, as there is not after I've forcibly
> > deleted it, I want any request to a page inheriting AuthFrame to go to
> > my login page. I apologize if I'm missing something really plain but
> > I've done this sort of thing before so I'm really confused.
> >
> > On Wed, 30 Mar 2005 16:26:10 -0500, Geoffrey Talvola
> > <[EMAIL PROTECTED]> wrote:
> > > Greg McClure wrote:
> > > > I need to detect if the session cookie is present or not, *before* the
> > > > rest of a page executes. Right now my protected pages are inheriting
> > > > from an AuthFrame class which uses the awake method to handle this
> > > > stuff. I have caching turned off.
> > >
> > > How about self.transaction().hasSession() -- does that meet your needs?
> > >
> > > - Geoff
> > >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by Demarc:
> > A global provider of Threat Management Solutions.
> > Download our HomeAdmin security software for free today!
> > http://www.demarc.com/info/Sentarus/hamr30
> > _______________________________________________
> > Webware-discuss mailing list
> > Webware-discuss@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/webware-discuss
> >
> 
> 
> --
> Michel Thadeu Sabchuk
> Curitiba - Brasil
> 



On Thu, 31 Mar 2005 13:32:01 -0300, michelts <[EMAIL PROTECTED]> wrote:
> Hi Greg
> 
> What is your real problem? I don't know if is your case, but Internet
> Explorer doesn't save cookies if you are on a frame (in my case an
> iframe). I need to use AutomaticPathSession=1 on the configuration.
> 
> If I open the frame on a new window all is ok...
> 
> seeya
> 
> On Thu, 31 Mar 2005 00:35:09 -0800, Greg McClure <[EMAIL PROTECTED]> wrote:
> > Argh.
> >
> > I tried it, but unfortunately trans.hasSession() doesn't seem to be
> > solving my problem.
> >
> > Here's a sample of my code, as per your suggestion:
> >
> > import lib.Config
> > from BasicFrame import BasicFrame
> >
> > class AuthFrame(BasicFrame):
> >     def awake(self, trans):
> >         BasicFrame.awake(self, trans)
> >
> >         if not trans.hasSession():
> >             try:
> >                 self.session().setValue('target', self.request().uri())
> >                 self.response().sendRedirect('login')
> >             except:
> >                 self.writeln('Could not create authenticated session.')
> >
> > If there is no session cookie, as there is not after I've forcibly
> > deleted it, I want any request to a page inheriting AuthFrame to go to
> > my login page. I apologize if I'm missing something really plain but
> > I've done this sort of thing before so I'm really confused.
> >
> > On Wed, 30 Mar 2005 16:26:10 -0500, Geoffrey Talvola
> > <[EMAIL PROTECTED]> wrote:
> > > Greg McClure wrote:
> > > > I need to detect if the session cookie is present or not, *before* the
> > > > rest of a page executes. Right now my protected pages are inheriting
> > > > from an AuthFrame class which uses the awake method to handle this
> > > > stuff. I have caching turned off.
> > >
> > > How about self.transaction().hasSession() -- does that meet your needs?
> > >
> > > - Geoff
> > >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by Demarc:
> > A global provider of Threat Management Solutions.
> > Download our HomeAdmin security software for free today!
> > http://www.demarc.com/info/Sentarus/hamr30
> > _______________________________________________
> > Webware-discuss mailing list
> > Webware-discuss@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/webware-discuss
> >
> 
> 
> --
> Michel Thadeu Sabchuk
> Curitiba - Brasil
>


-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to