Tracking changes to a session variable. |
| Charvi Sanghavi posted at 02-Jul-08 09:46 |
Hi,
I have different roles for different users in my website.
These roles are maintained in a master (roles) table in the Database.
I am using Session variables to persist a user's role.
Now what I want is that when the user changes his role from the UI, the session variable
contends should also change i.e. if the user was initially logged in with a role as say "Normal User"
and changes his role to "Super User" then the contend of my session variable should also change accordingly and be persisted across my application.
How do I achieve this using Sessions and also how do I track this change to the Session Variable?
Thanks in advance,
Charvi.
|
|