Hi all...need some help understanding sessions...
Background on project:
i have a user and subuser
the user sets up the account and adds each subuser as part of his "group". they share an XID inside the database. so user XID = 001 and subuser XID=001 so i know they belong to the same group.
I want to be able to pass this XID via a session along each and every page. So one of my functions in my application would be to list all submembers with this XID.
My question is when the main user signs in, how can he carry this XID over every single page he visits? (There is no telling when the main user wants to perform the function above)
So login would include username and password, but in the background i want the XID to be passed along somehow after login.
So obviously the username password and XID would be in the same table.. Would i pass information in an array? how does the script know to hit this one table.
I guess im having trouble putting 2 and 2 together.
Thanks for any help in advance.