Sometimes my page can't access PHP session varible

Posted by Anusha on Programmers See other posts from Programmers or by Anusha
Published on 2012-10-01T07:18:38Z Indexed on 2012/10/01 9:49 UTC
Read the original article Hit count: 249

Filed under:
|

I am working on E-commerce Web Application, which is having users and permissions to them.. So according to their permission,

For Ex: I am storing variable $chk = 'write' or $chk = 'read' on session and my condition is

if ($chk == 'write')
{
   // some function here to modify the page & its content
   // If true, then display SAVE button to save all changes made.
}

But, Sometimes my page cant access this variable, the value of $chk is unknown hence its not displaying SAVE button. But, it shows the button after refreshing the page or visiting sometime later. Can anyone help me to solve this.. Thanks in advance

© Programmers or respective owner

Related posts about php

Related posts about session