473,394 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Login redirect not working

This works in my VS IDE and was temporarily worknig on my publsied web site,
but now the redirect to ~/secure/Default.aspx always returns to my login
page. Here's a partof the web.config file taht deal with forms
authentication (note that I am using SQL Server membership and role
providers):

<authentication mode="Forms">
<forms name="CookieName" loginUrl="UserLogin.aspx"
defaultUrl="~/secure/Default.aspx" timeout="15" path="/" />
</authentication>
<authorization>
<deny users="?" />
<allow users="*" />
</authorization>

Thx
--
Tim
Apr 11 '06 #1
1 1168
And the answer is: the hostname must not contain an underscore in it!

www.web_server.com is not allowed, whereas www.web-server.com is allowable.
Only letters and the hyphen and period characters are allowed in the hostname.
--
Tim
"AAOMTim" wrote:
This works in my VS IDE and was temporarily worknig on my publsied web site,
but now the redirect to ~/secure/Default.aspx always returns to my login
page. Here's a partof the web.config file taht deal with forms
authentication (note that I am using SQL Server membership and role
providers):

<authentication mode="Forms">
<forms name="CookieName" loginUrl="UserLogin.aspx"
defaultUrl="~/secure/Default.aspx" timeout="15" path="/" />
</authentication>
<authorization>
<deny users="?" />
<allow users="*" />
</authorization>

Thx
--
Tim

Apr 11 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Simon | last post by:
Hi, I have a Login.php page that logs the user in and out. I has two forms within the page, (depending on what we are trying to do), either one to log in or out. The form calls itself using a...
0
by: Joe | last post by:
Hi, I have a login page. Where user enters an email and password. Then I;m checking if user account is active or not. Before a user can login, he needs to activate his account. If the account...
11
by: David W. Simmonds | last post by:
I have a form that will prompt for a user name/password. In VS.NET, I have the protected form in a folder named Admin. I have a Web.config file in that folder as well. It contains the following...
4
by: Joe | last post by:
Hi, I have MS Access database with a small table that has four columns ID (Primary Key), page, userid and password. The page column holds the name of the page which has the login form. The...
1
by: Kirk Groome | last post by:
Hi all, I'm working on a web site and I would like to use the VS login controls. The problem I'm having is that when I create a new user all works fine. The user gets added to the database and...
1
by: Jakob Lithner | last post by:
When I started a new ASP project I was eager to use the login facilities offered in Framework 2.0/VS 2005. I wanted: - A custom principal that could hold my integer UserID from the database -...
6
by: AppleBag | last post by:
I'm having the worst time trying to login to myspace through code. Can someone tell me how to do this? Please try it yourself before replying, only because I have asked this a couple of times in...
0
by: =?Utf-8?B?U2VtU2Vt?= | last post by:
Helloz iam working in a web application for univesity. ihave diffrent kind of roles like: 1-Studetn Affairs 2-Staff imake three sperate master pages for them.: example:
2
by: Vai2000 | last post by:
Hi All, I have a website which allows users to visit anonymously. Throughout the page I offer a signup link thru which a user can create an account. I want the user to be redirected to the page on...
3
by: satishknight | last post by:
Hi, Can some one tell me how to change the validation sequence for the code pasted below, actually what I want it when any one enters the wrong login information (already registered users) then it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.