473,583 Members | 4,510 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Basic Security

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.
Nov 18 '05 #1
3 893
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**********@c ybase.co.uk> wrote in message
news:eW******** ******@TK2MSFTN GP10.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.

Nov 18 '05 #2
If you want to control where the user is redirected on login, use this code:

if (FormsAuthentic ation.Authentic ate(txtUsername .Text, txtPwd.Text))
{
FormsAuthentica tion.SetAuthCoo kie(txtUsername .Text, false);
Response.Redire ct("nextpage.as px");
}
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.

Nov 18 '05 #3
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******@takem pis.com> wrote in message
news:eF******** *****@TK2MSFTNG P09.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**********@c ybase.co.uk> wrote in message
news:eW******** ******@TK2MSFTN GP10.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.


Nov 18 '05 #4

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

Similar topics

5
5910
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 disable Ctrl-Alt-Delete. It seems there seems to be only one real way I know about: Write a replacement Gina Driver to eat the keyboard events I...
4
2219
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 process? 2. What information contained in sn key. I gone through that it is having public key. How it is using this key to intract with client....
6
2385
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 it to run using credentials supplied by the user. When using basic authentication this is not an issue since the user has to provide a user name...
7
1075
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. ----------------------------------------------------------- --------------------- Security Exception Description: The application attempted to perform an
5
1803
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 property '.fulladdress' to be the value that appears in the drop downs text section. How to I set that parameter to be the one shown inthe drop down
3
15801
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 (users on the PC?) the Authentication is occuring. Is there a way for me to receive and control the Authentication attempt myself? This is probably...
2
1118
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 can't get anything to work. (The closest I get is a login failure error. But when I generate the .rpt file, I can get to the database without issue...
0
1249
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 procedures. In the past I saved the DTS package as a Visual Basic file, compiled the Visual Basic file in the Visual Studio 6.0 environment and ran...
2
4336
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 simple chat server and chat client. The server opens a socket, listens on a port, and accepts incoming connections. The clients open a socket and...
3
1493
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 system.web.security in Windows Application for this purpose ? Best Regards, Luqman
0
7894
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7825
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8323
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7933
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8191
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5700
isladogs
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5372
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2331
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 we have to send another system
1
1431
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.