Click here to Skip to main content
15,914,416 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a web application having three pages, one is login page, second is contact page, and third is chat page. The natural sequence to traverse is one to second and from second to third.

Login (using our web service) is required to open second and third page. Now we have a requirement that we want to open third page directly from a third party application.

So, suppose if third page is requested from browser and on the same browser login (using first page) has been made. Then we need to directly show the third page otherwise show the user first page i.e. login page.

The requirement is similar as required facebook page can be opened by clicking an link from gmail page, if facebook user has done login, he can see the desired page directly.

Please help.


Regards
Posted
Updated 11-Apr-12 18:25pm
v2
Comments
[no name] 11-Apr-12 7:18am    
What language or technology are you using. You have tagged this very generically as web development, which isn't helpful at all
rakesh5454 11-Apr-12 7:27am    
I thought its a generic problem and must be having support in all technologies. Anyways, its JSP, Javascript.
[no name] 11-Apr-12 7:42am    
It is a generic problem, but how to solve it depends on the language and technology
rakesh5454 11-Apr-12 7:45am    
OK, thanks. It would be great if you can guide me to solve this issue in any technology.

1 solution

In my opinion it can be managed through sessions


if session is alive then redirect to third page and if not then redirect to login page

C#
if(session["uid"]+""<>"")
{
 response.redirect("third page");
}
else
{
response.redirect("login page");
}



it will help you..
 
Share this answer
 
Comments
rakesh5454 11-Apr-12 8:18am    
But to store these SessionId at server, Do we require db or just array will be enough. Is there any option to do somethings at client side and achieve the same result?
[no name] 11-Apr-12 8:30am    
if(session["uid"]+""<>"") ???? What are you trying to do here?
AshishChaudha 11-Apr-12 8:33am    
Mark I am trying to check where session is available or not.

better you give solution of his question...
[no name] 11-Apr-12 8:40am    
Your code makes no sense. Better if you give a proper solution.

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