Got everything working in my application including database security. The
final thing I am having a problem with is:
When a user goes to the application page they are redirected to the login
page and they logout they are redirected again back to it.
When a user goes directly to the login page, when they login, it attempts to
redirect them to default.aspx, which doesn't exist. I suppose I could create
a default aspx page but really I would like to know what is going on behind
the scenes. Why doesn't .net apply the same redirect rules to login page as
it does to application pages. Regards, Chris. 3 888
Whoever writes the software makes the business rules.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Chris Kennedy" <ch**********@cybase.co.uk> wrote in message
news:eW**************@TK2MSFTNGP10.phx.gbl... Got everything working in my application including database security. The final thing I am having a problem with is: When a user goes to the application page they are redirected to the login page and they logout they are redirected again back to it. When a user goes directly to the login page, when they login, it attempts
to redirect them to default.aspx, which doesn't exist. I suppose I could
create a default aspx page but really I would like to know what is going on
behind the scenes. Why doesn't .net apply the same redirect rules to login page
as it does to application pages. Regards, Chris.
If you want to control where the user is redirected on login, use this code:
if (FormsAuthentication.Authenticate(txtUsername.Text , txtPwd.Text))
{
FormsAuthentication.SetAuthCookie(txtUsername.Text , false);
Response.Redirect("nextpage.aspx");
}
else
{
.....
}
"Chris Kennedy" wrote in message When a user goes directly to the login page, when they login, it attempts
to redirect them to default.aspx, which doesn't exist. I suppose I could
create a default aspx page but really I would like to know what is going on
behind the scenes. Why doesn't .net apply the same redirect rules to login page
as it does to application pages. Regards, Chris.
That's not really very helpful. I thought it was fairly self-evident from my
question that I was not blaming the .net framework for my problem but rather
I would some help understanding why it works the way it does so I can use it
more effectively.
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:eF*************@TK2MSFTNGP09.phx.gbl... Whoever writes the software makes the business rules.
-- HTH, Kevin Spencer .Net Developer Microsoft MVP Big things are made up of lots of little things.
"Chris Kennedy" <ch**********@cybase.co.uk> wrote in message news:eW**************@TK2MSFTNGP10.phx.gbl... Got everything working in my application including database security.
The final thing I am having a problem with is: When a user goes to the application page they are redirected to the
login page and they logout they are redirected again back to it. When a user goes directly to the login page, when they login, it
attempts to redirect them to default.aspx, which doesn't exist. I suppose I could create a default aspx page but really I would like to know what is going on behind the scenes. Why doesn't .net apply the same redirect rules to login page as it does to application pages. Regards, Chris.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Greg |
last post by:
I am developing an application where I need to secure a
workstation for periods of time. I can use BlockInput to
stop users from task switching or messing with the
keyboard, but I would like to...
|
by: Ramesh |
last post by:
hi,
Let me ask some basic questions.
Can anybody explain me about the following questions:
1. When we have to create sn key? Whenever we compiled
Component we have to create or it is a one time...
|
by: Erez Shor |
last post by:
Hi,
I need to build and asp page which access a remote windows server's
registry and create a registry key.
In order for the ASP page to be able to access the registry on the
remote server I need...
|
by: Madison |
last post by:
I just completed the installation of the Resource Kit but
I get the following error on GetStarted.aspx:
Server Error in '/VB.NETResourceKit' Application....
|
by: Aussie Rules |
last post by:
Hi,
Having a mental block on this one. Have done it before but can't rack my
brain on how...
I have an object, with a bunch on property, and I add that object to a combo
box. I want the...
| |
by: Martin |
last post by:
How does one set up basic authentication on an HttpListener? I know I need to
set the HttpListener.AuthenticationSchemes to AuthenticationSchemes.Basic but
then I'm unsure how and against what...
|
by: |
last post by:
I was trying to display a report on a web page. I added a report object to
my project and dropped a report viewer control on the page. I assigned the
reportsource property in page_load, but I...
|
by: Gloria |
last post by:
Hi all,
I created a DTS package in SQL Server 2000 that creates several stored
procedures. I need to run this package as part of an installation program
for an application that uses the stored...
|
by: Dave Dean |
last post by:
Hi all,
I'm just starting out in sockets/network programming, and I have a very
basic question...what are the 'security' implications of opening up a
socket? For example, suppose I've written a...
|
by: Luqman |
last post by:
How to implement Role Enabled Security in Visual Basic 2005 Windows
Application, like we do in ASP.Net 2.0 ?
I want to use Sql Server Membership Security for Adding Roles and Users.
Can I use...
|
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,...
| |
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...
|
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,...
|
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |