Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends,
Please Give One Suggestion
In My Project I Was Using Custom Authentication.....
User Login And Logout Process Completing Secussfully,

I Was Implemented Login Time Capture The UserID And Stored UserID Value In Sessions.
Up To Logout User I Was Using Only That SessionValue.
After Logout That sessions Was Closed.
This Is My Login Process.....


Here I Am Faceing One Problem...

lets see.....

Take Mozilla Firefox, Click Login.aspx---My Page Required Login Details then Goto The Perticular UserId Profile,
In The Same Browser I was Open Another window and click Login.aspx...this time also required Login Details...

I Want Solution For First Window Required Login Details And Secound Window Does Not Required Login Details, automatically goto the First Window UserID Profile

like gmail

How to Implement This Concept And Which Here Used
Give me Plz Description
Posted
Comments
Sandeep Mewara 1-Feb-11 1:53am    
Sorry Off-topic: Why to start every word with a capital letter? It's irritating to look and read. Please avoid it.

In Login.aspx add a check, If the session is available then redirect the url to the profile page.
Something like
protected void Page_Load(object sender, EventArgs e)
    {
if(Session["User"]!=null)
Response.Redirect("profile.aspx");
}
 
Share this answer
 
Comments
[no name] 1-Feb-11 2:28am    
hi shakil,

in my project there is not a only one form profile.aspx, we provide roles up to 10 members with upto 10 pages
shakil0304003 1-Feb-11 3:07am    
Then you can redirect those page you are need. You can redirect different pages accourding to users.
Sandeep Mewara 1-Feb-11 3:26am    
Looks like OP is talking of "sharing session across tabs".

Based on that, could not make out your answer.
shakil0304003 1-Feb-11 3:40am    
I can not understand your requirement!!! Which pages you want to redirect? Like you want to redirect a.aspx,b.aspx & c.aspx pages. Now, which condition you want to redirect a.aspx page? Descrive your problem with some example.
On login page, check for the session values during load. If it exists, use response.redirect to navigate to your first page.
 
Share this answer
 
Comments
Sandeep Mewara 1-Feb-11 3:25am    
Looks like OP is talking of "sharing session across tabs".

Based on that, could not make out your answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900