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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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... |
|
|||
|
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 ================== |
|
|||
|
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... |
|
|||
|
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. |
|
|||
|
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 ================== |
|
|||
|
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. |
|
|||
|
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? |
|
|||
|
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? |
|
|||
|
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 > ================== |
|
|||
|
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 ================== |