Forum Moderators: coopster

Message Too Old, No Replies

Complicated Setting Session Variables Issue -- Please help

         

xpiamchris

1:58 am on Jan 17, 2009 (gmt 0)

10+ Year Member



So here is what I'm trying to do. I'm using someone's code right (jpmaster77 login script).

So when users login, the session variables that are set right now are the uid and the username.

Once users login, they are able to create entries into a database. One of the columns in the database table is their uid, which identifies which entries they are allowed to modify/see. The entries all have a unique ID too (album id).

I need to set it so that the album ID's once they login are set into session variables. However, I'm having a hard time getting the session variables to set because I need to first filter users by their UID but in order to get their UID, I would need for them to login.

How would you guys go about solving this? Any help would REALLY be appreciated.

Best,
Chris

cameraman

5:58 am on Jan 17, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not understanding the problem.
1. Log in - now you know the uid
2. filter by uid, which you now know, so now you know the album ids
3. set the album ids in session