Author: haile819 | Posted on: 6/19/2009 11:16:39 AM | Views : 461

Hi
oh boy, not sure how to explain this but please bare with me. I use asp.net's Membership and Role to provide authentication and authorization. After a user logs in, she clicks on a button_saveColor which calls a function to save her favorite color in a Session variable i will call Session("favoriteColor")=aColorObject.
When she clicks the logout button i capture that action in the event handler (below) where i want her favorite color to be saved in a session variable. But when she logs in again. i want her saved color to be associated with her only and not other users. As of right now, after she logs out, other users can still see her shopping cart of colors. So how do i prevent her favorite colors from being seen by other users?

thanks in advance
lewis.

protected void ColorLoginStatus_LoggingOut(object sender, LoginCancelEventArgs e)
 {
        Session("favoriteColo ...

Go to the complete details ...