Click here to Skip to main content
15,910,083 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have .net application, when the user enters in to application by entering username & password, user will creates bookmark in chrome or favourites in IE8, when ever user clicks on favourite related to that .net logged in app, need to redirect user to login page even though session / forms token is alive, this issue related to security.

this kind of functionality saw in bank sites(www.onlinesbi.com,www.axisbank.com),

if any one knows, pls help me the procedure to implement.

thank you
Posted
Updated 21-Jun-13 1:20am
v2
Comments
Thanks7872 20-Jun-13 8:18am    
Not clear. User doesnt create any bookmarks after login? Can you elaborate more on this what do you mean by "favourite related to .net application"?
srinvias kumar lumeris 20-Jun-13 8:28am    
after getting user login, user will navigate to some screens as per user requirement, then user will create that screen url as favourite in IE8 or bookmark in chrome, then if the user click on that created favourite in IE8 browser , need to take user to login page means restricting user by providing security to application, if any clarification need let me know


favourite in IE8 and bookmarks in chrome are same, but different in terminology, favourite are used as shortcut to required page, when we click on that favourite user will directly navigate to that particular requested page

Hi,
I think simple ASP.NET application cannot restrict the browser's integral events such as "BookMark", "Favorites" etc. May be some ActiveX objects could handle those events, but again those objects will have its own pros & cons.

refer What ASP.NET Can And Cannot Do[^] for more.

hope it helps.
 
Share this answer
 
You dont need to think about what user has bookmarked. Bookmarking doesnt mean that it allows access to user at anytime.Its your application who decides whether to allow acces to this request or not [based on some conditions].

The security you are talking about can be easily achieved using e.g. Forms Authentication. A very basic example can be found here.

How to: Implement Simple Forms Authentication[msdn][^]

After applying this concept, Any unauthenticated user will be redirected to Login page. This will give you more accuracy while working with the security.

[EDIT]:

ASP.NET Session State shared between IE Tabs and IE8[^].

asp.net - session - multiple browser tabs - different sessions?[^]

I think this is the thing what you needed.

Regards.. :laugh:
 
Share this answer
 
v5
Comments
srinvias kumar lumeris 20-Jun-13 8:51am    
thanks, but i already tried with forms authentication, i didnt get my requirement, any way
i will check with your link once again, if i have any doubts will ask you.
Thanks7872 20-Jun-13 8:54am    
Sure. Most welcome. Forms authentication simply does something that unauthenticated users cant access predefined secured area.Thats it.Refer to updated answer once more.
srinvias kumar lumeris 21-Jun-13 5:48am    
tested with forms authentication, once i will tell you my requirement, after user getting login with credentials(forms token is created), immediately user will creates favourites for required page, when the user click on that created favourite immediately need to redirect user to login page,

i observed that if i use forms authentication, after log in to the application when i click on favourite , user is staying in that form only without redirecting to login page, may be the reason is that user session / forms token is alive, our requirement is need to redirect to login page without considering sessions & tokens, let me know your comments.
Thanks7872 21-Jun-13 6:22am    
Its not possible at all. I repeat again its not possible at all because its your browser's functionality. Why you want to restrict user from bookmarking the page? Let them bookmark it. You are concerned at bookmark/favorites or your application? I already told you to try your one of the email client.Bookmars/favorites and your application's security are totally means totally different. Bookmarking doesnt allow access to your application.
Thanks7872 21-Jun-13 6:23am    
What is your ultimate goal?Restrict user to access your application if he tries to open it using bookmark/favorites,right?

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