sessions - alternate home page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dirksmith
Forum Newbie
Posts: 11
Joined: Fri Oct 07, 2005 4:19 pm

sessions - alternate home page

Post by dirksmith »

hi

i'd like to set up php sessions for my site so an alternate index page is shown everytime a user arrives at the home page.

I plan to have 2 or 3 different home pages.

Grateful for help on acheiving this.

Thanx

Dirk
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

if you are using sessions, the home page would reset each time the user opens the page after closing the browser. Is this the desired effect? If not, cookies or login based would be the way to go. As for doing it, you could either redirect from the real home page to their chosen home page, or masquerade the chosen home page as the real home page via including it (basically)
Post Reply