-
hide return url...
is there a way to make this:
Code:
www.mywebsite.com/login.aspx?ReturnUrl=%2fstore%2fadmin%2fIndex.aspx
just this?
www.mywebsite.com/login.aspx
I want everyone to move to the login page and then redirect them based on their login??
Any help?
Thanks!!
Anjari
-
Re: hide return url...
How are you arriving at that page? Is it directly or through another page?
-
Re: hide return url...
I was seeing what would happen if someone typed in to the url directly instead of logging in through the home page..
Anjari
-
Re: hide return url...
Perform the querystring check in the code of your ASP page. Then perform the redirect based upon their login. Simply ignore the returnurl.
-
Re: hide return url...
Thanks... Mendhak... hey will you read this and give me some advice?
http://www.vbforums.com/showthread.php?t=347749
Ive seen you around and think you might be able to help!
Thanks!!
Anjari
-
Re: hide return url...
Should I abandon the security check in the web.config file and just use sessions to determine if the person is logged in on each page?
Anjari
-
Re: hide return url...
I don't know what you're trying to accomplish. Explain?
-
Re: hide return url...
I'm just trying to create 1 login page and when someone tries to view a page without logging in they are thrown to the login.aspx without the following url:
Code:
www.mywebsite.com/login.aspx?ReturnUrl=%2fstore%2fadmin%2fIndex.aspx
I just tried to use a session but I get an error using response.redirect with asp.net... I am trying to research why now..
Anjari
-
Re: hide return url...
-
Re: hide return url...
If you are trying to hide the url you could use frame of some flavor or you could use an HttpHandler to proccess all requests.
the handler would basicly work by pretending to always get the default aspx from a directory.
Code:
http://stie.com/products/sporting%20goods/football/
would be translated to
Code:
http://site.com/product.aspx?cat=sporting%20goods&products=football
but the user would only see what apears to be a directory. The trick is designing your app and knowing what namespaces(mock directories you have and at what dir level the actual page to be used is and which levels are param....
it is somewhat complex. personal even though frames are of the devil I just use frames or an Iframe when I am worried about this.....