I have a site that works on a catch all subdomain using a wild card in my dns. The user accesses the site from www.sub.domain.com. The script accepts the domain name and opens up a frameset. With in the mainFrame it opens another site based on a uid gathered from referencing the database. eg www.domain.com/?uid=1
once uid is set in the address query it registeres it in a session and uid doesn't need to be in the address query again.
It all works very well, except for one small bug, sessions unregister after about 5 hours of inactivity.
Typically this would not pose a problem but me being a perfectionist i always like to have things at their best.
So far i have figured out two solutions to this problem:
1: use a meta refresh that refreshes the screen after 1 hour of inactivity, effectively resetting the session time limit.
2: Get $SERVER_NAME from the frameset and re-register the session again.
Trouble is with solution 2, how do you find out what the $SERVER_NAME is from within a frameset?
Any ideas?