Session or browser problem??

This is a discussion on Session or browser problem?? within the PHP Language forums, part of the PHP Programming Forums category; Hi all, I have a news website tat is developed on joomla 1.5.Login facility is done thru a ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-28-2007
sw@bglore
 
Posts: n/a
Default Session or browser problem??

Hi all,

I have a news website tat is developed on joomla 1.5.Login facility is
done thru a login component.On each page,ther s a 'Log In' link that
redirects them to a login page.On successful login,user details are
set in session as well as cookies and then redirected back to d
referring page.The 'Log In' section changes to 'Welcome user',along
wid a 'Log Out' link.All this works d same in IE 6 as well as in FF
2.The difference comes durin log out action.

In FF,on clickin 'Log Out',the required session vars are set '' as
well as cookies in d component and then redirected back to referring
page.The login bar changes back to 'Log in'.But in IE,once redirected
from the component,the page still shows the login bar as 'Welcome
user'.Only if i manually click the refresh button (of IE), the page
gets refreshed and the login bar shows logged out status.

Any help wud be highly appreciated...

Reply With Quote
  #2 (permalink)  
Old 10-28-2007
Jerry Stuckle
 
Posts: n/a
Default Re: Session or browser problem??

sw@bglore wrote:
> Hi all,
>
> I have a news website tat is developed on joomla 1.5.Login facility is
> done thru a login component.On each page,ther s a 'Log In' link that
> redirects them to a login page.On successful login,user details are
> set in session as well as cookies and then redirected back to d
> referring page.The 'Log In' section changes to 'Welcome user',along
> wid a 'Log Out' link.All this works d same in IE 6 as well as in FF
> 2.The difference comes durin log out action.
>
> In FF,on clickin 'Log Out',the required session vars are set '' as
> well as cookies in d component and then redirected back to referring
> page.The login bar changes back to 'Log in'.But in IE,once redirected
> from the component,the page still shows the login bar as 'Welcome
> user'.Only if i manually click the refresh button (of IE), the page
> gets refreshed and the login bar shows logged out status.
>
> Any help wud be highly appreciated...
>
>


And your PHP programming question is?

Try the Joomla support groups.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Reply With Quote
  #3 (permalink)  
Old 10-29-2007
petersprc
 
Posts: n/a
Default Re: Session or browser problem??

Hi,

Try using session_cache_limiter('nocache') before session_start. This
will tell the browser not to cache the page.

Regards,
John Peters

On Oct 28, 5:21 am, "sw@bglore" <pranav.k...@gmail.com> wrote:
> Hi all,
>
> I have a news website tat is developed on joomla 1.5.Login facility is
> done thru a login component.On each page,ther s a 'Log In' link that
> redirects them to a login page.On successful login,user details are
> set in session as well as cookies and then redirected back to d
> referring page.The 'Log In' section changes to 'Welcome user',along
> wid a 'Log Out' link.All this works d same in IE 6 as well as in FF
> 2.The difference comes durin log out action.
>
> In FF,on clickin 'Log Out',the required session vars are set '' as
> well as cookies in d component and then redirected back to referring
> page.The login bar changes back to 'Log in'.But in IE,once redirected
> from the component,the page still shows the login bar as 'Welcome
> user'.Only if i manually click the refresh button (of IE), the page
> gets refreshed and the login bar shows logged out status.
>
> Any help wud be highly appreciated...



Reply With Quote
  #4 (permalink)  
Old 10-29-2007
sw@bglore
 
Posts: n/a
Default Re: Session or browser problem??

Thanks 4 d help..but tat dint help.
I found tis particulr code in the application wher d sessions wher
restartd.


session_cache_limiter('none');
session_start();

// Send modified header for IE 6.0 Security Policy
header('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"');

I tried commentin out d header..but dint help.I wud like to know
whethr the abov header s correct.

Reply With Quote
  #5 (permalink)  
Old 10-29-2007
Jerry Stuckle
 
Posts: n/a
Default Re: Session or browser problem??

petersprc wrote:
> On Oct 28, 5:21 am, "sw@bglore" <pranav.k...@gmail.com> wrote:
>> Hi all,
>>
>> I have a news website tat is developed on joomla 1.5.Login facility is
>> done thru a login component.On each page,ther s a 'Log In' link that
>> redirects them to a login page.On successful login,user details are
>> set in session as well as cookies and then redirected back to d
>> referring page.The 'Log In' section changes to 'Welcome user',along
>> wid a 'Log Out' link.All this works d same in IE 6 as well as in FF
>> 2.The difference comes durin log out action.
>>
>> In FF,on clickin 'Log Out',the required session vars are set '' as
>> well as cookies in d component and then redirected back to referring
>> page.The login bar changes back to 'Log in'.But in IE,once redirected
>> from the component,the page still shows the login bar as 'Welcome
>> user'.Only if i manually click the refresh button (of IE), the page
>> gets refreshed and the login bar shows logged out status.
>>
>> Any help wud be highly appreciated...

>
>
>
> Hi,
>
> Try using session_cache_limiter('nocache') before session_start. This
> will tell the browser not to cache the page.
>
> Regards,
> John Peters
>


(Top posting fixed)

Which the browser can ignore, unfortunately. And even if the browser
doesn't ignore the cache, any of the systems between the client and the
server could cache it.

How I wish it did work properly.

P.S. Please don't top post.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Reply With Quote
  #6 (permalink)  
Old 10-29-2007
petersprc
 
Posts: n/a
Default Re: Session or browser problem??

Try using 'nocache' instead of 'none'. This will set the Cache-
Control, Expires, and Pragma headers as below. The 'none' value won't
define any additional cache headers.

Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma: no-cache

On Oct 29, 5:29 am, "sw@bglore" <pranav.k...@gmail.com> wrote:
> Thanks 4 d help..but tat dint help.
> I found tis particulr code in the application wher d sessions wher
> restartd.
>
> session_cache_limiter('none');
> session_start();
>
> // Send modified header for IE 6.0 Security Policy
> header('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"');
>
> I tried commentin out d header..but dint help.I wud like to know
> whethr the abov header s correct.




Reply With Quote
  #7 (permalink)  
Old 10-30-2007
sw@bglore
 
Posts: n/a
Default Re: Session or browser problem??

On Oct 29, 9:58 pm, petersprc <peters...@gmail.com> wrote:
> Try using 'nocache' instead of 'none'. This will set the Cache-
> Control, Expires, and Pragma headers as below. The 'none' value won't
> define any additional cache headers.
>
> Expires: Thu, 19 Nov 1981 08:52:00 GMT
> Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
> pre-check=0
> Pragma: no-cache
>
> On Oct 29, 5:29 am, "sw@bglore" <pranav.k...@gmail.com> wrote:
>
> > Thanks 4 d help..but tat dint help.
> > I found tis particulr code in the application wher d sessions wher
> > restartd.

>
> > session_cache_limiter('none');
> > session_start();

>
> > // Send modified header for IE 6.0 Security Policy
> > header('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"');

>
> > I tried commentin out d header..but dint help.I wud like to know
> > whethr the abov header s correct.


I am not kind of sure as to whethr it is a cache problem.Because wen a
user clicks on 'Log In',he s redirected to login page.If he has
successfully logged in,requird sessions 'n cookies r set and then
redirected back to referring page.At this point,the referrin page
shows the correct user name from session/cookie.
Wen clickin 'Log Out',the control goes to login function,sessions 'n
cookies r reset and then redirectd back to referrin page.At this
point,the referrin page still shows the username 'n not d logged out
status.Y does d cache comes in2 picture durin log out action 'n not
durin login action?

Reply With Quote
  #8 (permalink)  
Old 10-30-2007
petersprc
 
Posts: n/a
Default Re: Session or browser problem??

The login request is submitting a form.

On Oct 30, 12:41 am, "sw@bglore" <pranav.k...@gmail.com> wrote:
> On Oct 29, 9:58 pm, petersprc <peters...@gmail.com> wrote:
>
>
>
> > Try using 'nocache' instead of 'none'. This will set the Cache-
> > Control, Expires, and Pragma headers as below. The 'none' value won't
> > define any additional cache headers.

>
> > Expires: Thu, 19 Nov 1981 08:52:00 GMT
> > Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
> > pre-check=0
> > Pragma: no-cache

>
> > On Oct 29, 5:29 am, "sw@bglore" <pranav.k...@gmail.com> wrote:

>
> > > Thanks 4 d help..but tat dint help.
> > > I found tis particulr code in the application wher d sessions wher
> > > restartd.

>
> > > session_cache_limiter('none');
> > > session_start();

>
> > > // Send modified header for IE 6.0 Security Policy
> > > header('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"');

>
> > > I tried commentin out d header..but dint help.I wud like to know
> > > whethr the abov header s correct.

>
> I am not kind of sure as to whethr it is a cache problem.Because wen a
> user clicks on 'Log In',he s redirected to login page.If he has
> successfully logged in,requird sessions 'n cookies r set and then
> redirected back to referring page.At this point,the referrin page
> shows the correct user name from session/cookie.
> Wen clickin 'Log Out',the control goes to login function,sessions 'n
> cookies r reset and then redirectd back to referrin page.At this
> point,the referrin page still shows the username 'n not d logged out
> status.Y does d cache comes in2 picture durin log out action 'n not
> durin login action?



Reply With Quote
  #9 (permalink)  
Old 10-30-2007
petersprc
 
Posts: n/a
Default Re: Session or browser problem??

This combination of headers will be honored by most hosts/proxies. In
a situation where it's not, you can try using URL-based sessions or
putting your site under https.

On Oct 29, 6:24 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> petersprc wrote:
> > On Oct 28, 5:21 am, "sw@bglore" <pranav.k...@gmail.com> wrote:
> >> Hi all,

>
> >> I have a news website tat is developed on joomla 1.5.Login facility is
> >> done thru a login component.On each page,ther s a 'Log In' link that
> >> redirects them to a login page.On successful login,user details are
> >> set in session as well as cookies and then redirected back to d
> >> referring page.The 'Log In' section changes to 'Welcome user',along
> >> wid a 'Log Out' link.All this works d same in IE 6 as well as in FF
> >> 2.The difference comes durin log out action.

>
> >> In FF,on clickin 'Log Out',the required session vars are set '' as
> >> well as cookies in d component and then redirected back to referring
> >> page.The login bar changes back to 'Log in'.But in IE,once redirected
> >> from the component,the page still shows the login bar as 'Welcome
> >> user'.Only if i manually click the refresh button (of IE), the page
> >> gets refreshed and the login bar shows logged out status.

>
> >> Any help wud be highly appreciated...

>
> > Hi,
> >
> > Try using session_cache_limiter('nocache') before session_start. This
> > will tell the browser not to cache the page.
> >
> > Regards,
> > John Peters
> >

>
> (Top posting fixed)
>
> Which the browser can ignore, unfortunately. And even if the browser
> doesn't ignore the cache, any of the systems between the client and the
> server could cache it.
>
> How I wish it did work properly.
>
> P.S. Please don't top post.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================



Reply With Quote
  #10 (permalink)  
Old 10-30-2007
Jerry Stuckle
 
Posts: n/a
Default Re: Session or browser problem??

petersprc wrote:
> On Oct 29, 6:24 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>> petersprc wrote:
>> >
>> > Try using session_cache_limiter('nocache') before session_start. This
>> > will tell the browser not to cache the page.
>> >
>> > Regards,
>> > John Peters
>> >

>>
>> (Top posting fixed)
>>
>> Which the browser can ignore, unfortunately. And even if the browser
>> doesn't ignore the cache, any of the systems between the client and the
>> server could cache it.
>>
>> How I wish it did work properly.
>>
>> P.S. Please don't top post.
>>

> This combination of headers will be honored by most hosts/proxies. In
> a situation where it's not, you can try using URL-based sessions or
> putting your site under https.
>


(Top posting fixed - again).

Not necessarily. Some do, some don't. And in some cases it depends on
the browser settings. The same is true with https:.

But this should be discussed in alt.html - this is not a PHP problem.

And again - please don't top post. This group uses bottom posting or
interwoven posting.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:33 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0