ROX Web Development Notes

Sessions Session


Title: Sessions Session
Type: tech

I've revamped the implementation of sessions on the site.

When I first designed the new site, I confined sessions to the /user/ directory. I wanted logged-in users to have access to the whole site, so I made the entire site available through the /users/ directory, but all in all it was pretty goofy.

Later I made a subdomain and confined sessions to that subdomain. This allowed logged-in users to access the entire site using the same filepaths as the general public, but this was still a goofy way to do it.

So now I've finally got it the way it should be, I think. Sessions are implemented across the site, for every page view, whether you're logged in or not. Content that you absolutely must be logged in to access is all stored in the /user/ directory.

I also added a Yahoo-style "Welcome [username]" greeting with account and logout links at the top of each page.

Anyway, the end result is hopefully a simpler and easier site — easier for everybody to use and easier for me to maintain. If you're logged in, you'll see options to edit your stuff, wherever it may be on the site.

It is non-goofy at last.

— posted by B on February 8th, 2004

Media for Sessions Session:
Up to...
ROX Web Dev Index

ROX Home | ROX Login | Watch ROX | Buy ROX
Episodes | Drinx | People | Locations | Things | Ideas | Subscribe/Syndicate
Editor B's Blog: b.rox

What the Fuck?


Created, maintained, owned and distributed by Editor B <send message>, except where otherwise noted.
Site hosted by DreamHost.
This page was generated in about 2 seconds.
Today's date: 2024-03-04