This topic is locked

Dynamic Permission - Session Variable

12/22/2008 4:43:23 PM
ASPRunnerPro General questions
D
dorlisa author

Hi,
I have the session variable for the "Static Permission," which I believe is (GroupID).
Can someone help me find the one for "Dynamic Permission?"
I am asking because I have set up an Access database that will allow users to register and depending upon there (Dynamic) group permissions, I want the user to be redirected to another page.
If someone logs in as an "Admin", I want them to go to "admin_list.asp" page and if they logon as anything else--I want them to be redirected to another page (default.html).
Here is the code I was using:
[codebox]if Session("GroupID") = "admin" then

Response.Redirect "admin_list.asp"

else

Response.Redirect "default.html"

end if[/codebox]
Please let me know what I am doing wrong.
phpnewbie

J
Jane 12/23/2008

Hi,
Session("GroupID") is used for static permissions only.

You need to select correct group for logged user from <...>_ugmembers table in your event.

G
GamezBeCJ 12/29/2008

Isn't this supposed to be the job of the $_SESSION["AccessLevel"] variable?. I'm trying to achieve a similar purpose but this variable returns just the value "User", regardless of the user being a regular user or an admin.

J
Jane 12/29/2008

Hi,
no, SESSION("AccessLevel") contains just type of user, not group.

You need to select correct group for logged user from <...>_ugmembers table in your event.