?
Solved

How can I clean my session?

Posted on 2007-11-30
3
Medium Priority
?
346 Views
Last Modified: 2010-04-15
HI Experts,

I have a master page(MasterPage.master)
I have 3 Content pages  that belong to the master page.
1)Log IN page  (login.aspx)
2)default Page (default.aspx)
3)Header Page (header.aspx)

The header page has a panel :
            <div style="left: 0px; width: 380px; position: absolute; top: 150px;
                height: 60px; z-index: 100;" align="left">
                <asp:Panel ID="NamePanel"  runat="server"  >
                    <div style="z-index: 101; left: 120px; width: 144px; position: absolute; top: 36px;
                        height: 22px">
                        <asp:Label ID="lblNameClient" runat="server" Width="141px"  style="font-family:Verdana;
                        font-size:8pt; font-weight:bold; color:white" /></div>
                </asp:Panel>
            </div>

When the Client get into the web site. The first page that he/she has access is the log in page.
You can see the Log in page  and the Header. The header hide the Panel in the log in page.

Later when the username and password has been accepted. It go to the next page DEFAULT.aspx. Where the panel from hte header appears with the name of the client, this name is set inside a label that is inside the panel from the header. I took the name form my client out through a session from a database.

Problem: The client is in the Default page.When the client use the button "BACK" from the browser. It will talke him/her  back to the LogIN page but the panel  with the label of the client name doesn't dissapear.
It suppose that doesn't need to show in the log in page but it does.

What can I do? Thanks
If you would mind to send examples...I will appreciate it!1
Thanks
0
Comment
Question by:eddyperu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 10

Accepted Solution

by:
digitalZo earned 1600 total points
ID: 20387192
On Login.aspx - Page_Load

#1 Set the visibility of the panel to false

#2 Clear the Sessions - Session.Clear() Or manually clear them: Session("[Sessionname]") ="" OR Session.Remove("[Sessionname]").

hth.
0
 
LVL 1

Expert Comment

by:Computer101
ID: 20592639
Forced accept.

Computer101
EE Admin
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question