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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cookie information not displaying!

Status
Not open for further replies.

Sitehelp

Technical User
Feb 4, 2004
142
GB
Every page appears to be working apart from one, it wont display the Client_ID cookie which is being passed through the pages, all other pages have no problems but this, I cannot locate the problem...? The page is designed so that the user can edit information stored in the DB about themselves. It displays the old info and then gives an option to change it. It wont display any info about the user even though the information in the cookie IS passing across. Wierd thing is is if I reload the page it shows it all fine but if I run through the pages like the user would navigating to this page it doesnt show anything????????? any ideas? I am stuck on this one! Thanks all!

<?php print $HTTP_COOKIE_VARS['Client_ID']; ?>
 
Is the cookie set on this page? If so, it will not be readable until the page is refreshed.

So either direct the user to another page OR use JS to set the cookie OR use the meta tag REFRESH to refresh the page and have the cookie readable

Bastien

Any one have a techie job in Toronto, I need to work...being laid off sucks!
 
The cookie was set on a previous page. The scenario is....

a) the user logs on with a clientID and password and Dept unique to them,
b) If the details entered are correct a Welcome page will be deisplayed listing the available options to that user,
c)The user selects to change their account information i.e. the information about themselves when they regestered
d)They select from a list menu the details about themself they would like to change e.g. their personnel details, their hardware details etc....
e)From their selection another page appears, say personnel details, with a list of the information they have already entered and a section where they can alter that info.

What is happening is that its not picking up their info to display in this page, it displays their clientID etc in all other pages (as this is the cookie being passed over) but for some reason this page is not showing anything..... any ideas? Cheers!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top