Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sorry can't create thread subject...Pls still Help!

Status
Not open for further replies.

Forri

Programmer
Joined
Oct 29, 2003
Messages
479
Location
MT
Hi

Sorry i couldn't setup a title for this thread!

I have an intranet based on php and i would like to develop a step further where groups and users are involved. Before it was jst on type of user!

I have a menu which a user with a certain group can have only limited access. I would like to create the menu on the fly but since its a javascript i'm not sure if i can.

I did create the javascript no probs but if for Session A, User A logs in and i chnge the javascript file for him, and another session B is created with another set of menu will he have the same script as the one before or will it be the old one!

Is the Javascript file downloaded to the client or?


Thanks nick
 
use the no caching headers to limit the cache to just the session....most user's don't set the browser to see a new page each time which causes the problem....

header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // some gone date
header ("Last-Modified: " . gmdate ("D, d M Y H:i:s") . " GMT");
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header ("Pragma: no-cache"); // HTTP/1.0

Bastien

Any one have a techie job in Toronto, I need to work...being laid off sucks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top