Hi,
using htaccess I'm adding a parameter to the URL, which gives a different reference depending what subdomain the user is viewing
eg,
member1.mysite.com goes to mysite.com?ref=member1
member2.mysite.com goes to mysite.com?ref=member2
SS then presents slightly different info depending on the 'ref' code.
At present, each time I want to use the ref code, I'm getting the info form the url, checking againts a database table, and getting the user info.
I would like to get the data once, (maybe in the init function) and then set things like user ID, name etc as global vars.
If i set the global var in the init function, and try access it in another function, i'm getting swathes of errors. I could maybe set as a session - this could work, but i'm thinking there must be a var of doing this as a global var....
any ideas?