Clad’s Tavern

Traveling is a requirement to fulfilling a well rounded education.

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:

CMS Login Screen shot

Homepage Screen Shot

2 Responses to “C.M.S. graphic shell update.”

  1. 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, “/”);

  2. 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).

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>