|
-
Jul 5th, 2005, 06:51 PM
#1
Thread Starter
Hyperactive Member
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
-
Jul 6th, 2005, 12:32 AM
#2
Re: hide return url...
How are you arriving at that page? Is it directly or through another page?
-
Jul 6th, 2005, 12:36 AM
#3
Thread Starter
Hyperactive Member
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
-
Jul 6th, 2005, 12:39 AM
#4
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.
-
Jul 6th, 2005, 12:48 AM
#5
Thread Starter
Hyperactive Member
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
-
Jul 6th, 2005, 05:18 PM
#6
Thread Starter
Hyperactive Member
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
-
Jul 6th, 2005, 11:33 PM
#7
Re: hide return url...
I don't know what you're trying to accomplish. Explain?
-
Jul 7th, 2005, 12:23 AM
#8
Thread Starter
Hyperactive Member
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
-
Jul 7th, 2005, 12:33 AM
#9
-
Jul 7th, 2005, 01:05 PM
#10
Frenzied Member
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.....
Magiaus
If I helped give me some points.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|