p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Classic ASP Databases (http://p2p.wrox.com/forumdisplay.php?f=62)
-   -   Creating a ticketing system with SQL Server (http://p2p.wrox.com/showthread.php?t=63567)

kiligan November 6th, 2007 05:27 PM

Creating a ticketing system with SQL Server
I'm trying to figure out the best way to create a ticketing system with SQL server and Windows Authentication.

Generally, my goal is to have a web site automatically detect the user (using windows Authentication only) and when a user accesses the site, all tickets that that user has created, will be present. The user never has to Login, or has to manually create this data store (with execption of writing a ticket itself).

Everytime the user accesses the site, BOOM all his info is stairing at him/her in the face. Because we are all in the same intranet network, everyone will have to use Windows Authentication, so the process of gathering the users name should be brain dead.

I just want to know what the best path to start implementing the above senario is.
I figure, I'll just use the Page_Load event to capture the users name, then have a C# method call a SPROC for the user. The users' name will be the variable to that the system can access his particular data.

Would greatly appreciate any insight as to how best to create this senario. Granted, I'm still kind of new to ASP.NET and SQL Server 2005.


dparsons November 6th, 2007 05:42 PM

Look into using the server variable: Remote_User If you have set windows authentication up on your web directory that server variable will contain a string similar to: <domain>\<user>

Once you have that string you can build the rest of your application around it since everything the user sees will be based upon that value.

Also, post your ASP.NET questions here: http://p2p.wrox.com/forum.asp?FORUM_ID=133 this is the Classic ASP forum.


================================================== =========
Read this if you want to know how to get a correct reply for your question:
================================================== =========
.: Wrox Technical Editor :.
Wrox Books 24 x 7
================================================== =========

All times are GMT -4. The time now is 06:26 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.