[ic] Login?

Daniel Davenport DDavenport at newagedigital.com
Sun Mar 26 14:02:15 EST 2006


 

> -----Original Message-----
> From: interchange-users-bounces at icdevgroup.org 
> [mailto:interchange-users-bounces at icdevgroup.org] On Behalf 
> Of Stefan Hornburg
> Sent: 2006 March 26 -- Sunday 10:33 AM
> To: interchange-users at icdevgroup.org
> Cc: racke at linuxia.de
> Subject: Re: [ic] Login?
> 
> On Sat, 25 Mar 2006 21:33:46 -0500
> "Daniel Davenport" <DDavenport at newagedigital.com> wrote:
> 
> >  
> > 
> > > -----Original Message-----
> > > From: interchange-users-bounces at icdevgroup.org
> > > [mailto:interchange-users-bounces at icdevgroup.org] On Behalf Of Tom
> > > Sent: 2006 March 25 -- Saturday 1:53 PM
> > > To: interchange-users at icdevgroup.org
> > > Subject: [ic] Login?
> > > 
> > > Im trying to do mouseover functions in my  store, But its not 
> > > worrking Right, Am I doing something Wrong?
> > > 
> > > [if session logged_in]
> > >     <td><a href="[area logout]" 
> > > onmouseout="turn_off('menu_b2b')" 
> > > onmouseover="turn_over('menu_b2b')"><img name="menu_b2b" 
> > > src="/foundation/images/menu_b2b.gif" alt="Log Out" 
> > > width="71" height="25" border="0"></a></td>
> > >     [else]
> > >     <td><a href="[area login]"  
> > > onmouseout="turn_off('menu_b2')" 
> > > onmouseover="turn_over('menu_b2')"><img name="menu_b2" 
> > > src="/foundation/images/menu_b2.gif" alt="Log In" width="58" 
> > > height="25" border="0"></a></td> [/else]
> > >     [/if]
> > 
> > Sometimes, [if session logged_in] doesn't like to work for me.  In 
> > fact, it hardly ever works for some reason.  So, i tend to use [if 
> > session username] instead.  There should only be a username in the 
> > session if the user managed to log in, right?  :)
> 
> [if session logged_in] should work reliably for me and does 
> in fact for me and probably for almost all users. There is 
> something wrong in your setup/code.

Hrm.  I don't monkey around with the userdb code, so i couldn't have
changed anything in the perl code that would cause that to break.  And i
see that $Session->{logged_in} does get set at the end of
&Vend::UserDB::login, at least in 5.2 and 5.3.  If that's always been
the case, then there's something weird going on.  At least in some of
the older foundation-based catalogs -- that's where i found i had to
work around it.  In the newer sites, i just used what always works for
me.

/daniel



More information about the interchange-users mailing list