C.M.S. graphic shell update.
Posted by cladironbeard on February 21, 2006
Nothing in programming is ever easy. I have the graphic shell intergrated and working great. I even dynamically load the correct side bars and main nav bar.
However, during all of this upgrading, I am having troubles with cookie settings. To make the program cleaner, I have put the file control portion into its own directory. Thats where the main problem is. The cookie made on the home page, will not work in a new directory.
I may redesign C.M.S. where the homepage has no password, and have a password for each sub-directory.
Screenshots:
capt_m3110w said
dude, to make the cookie work for other dirs, you need to add “/” as a last parameter, i.e.
setcookie(“cookie_name”, “cookie_val”, 0, “/”);
capt_m3110w said
the “/” parameter (the dir parameter) tells it to set the cookie for the whole site. by default the cookie’s only set for the current dir (as you’ve already noticed). you could also use that parameter to set the cookie for some other dir (donno why you’d wanna do that though).