Solved

How can I clean my session?

Posted on 2007-11-30
3
323 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
3 Comments
 
LVL 10

Accepted Solution

by:
digitalZo earned 400 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
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…

813 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now