473,396 Members | 1,879 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,396 software developers and data experts.

Keeping Login information throughout the Windows App.

My Windows application (C#) has a login screen and a user table to
handle user rights and accessibility. This is independant of the OS
level user security. At the time of launching the application, this
login authenticates the user and sets the access rights. What is the
best way to get to this user information (either as a datarow from the
users table or as a user class object) application wide. I have
custom user controls on windows forms that update customer data.
These custom user controls need to know who the current user is. So,
in a .NET windows application how can I keep a custom user class
object or a datarow object globally visible for any module that
requires it?

Any help is highly appreciated.

Babu.
Jul 21 '05 #1
1 2458
Thanx for the reply. Mine is a Windows app and NOT a Web app. So,
storing it in a session is out of question. Is there something in
Windows environment equivelant to "Session" in Web environment?

Babu.

"d_grantham" <gr******@bellsouth.net> wrote in message news:<23****************************@phx.gbl>...
Store the credentials in a session variable. I store the
database connection string parameters there with the
authentication information retrieved from a login form.

It is available as long as the session is.

-----Original Message-----
My Windows application (C#) has a login screen and a user

table to
handle user rights and accessibility. This is

independant of the OS
level user security. At the time of launching the

application, this
login authenticates the user and sets the access rights.

What is the
best way to get to this user information (either as a

datarow from the
users table or as a user class object) application wide.

I have
custom user controls on windows forms that update

customer data.
These custom user controls need to know who the current

user is. So,
in a .NET windows application how can I keep a custom

user class
object or a datarow object globally visible for any

module that
requires it?

Any help is highly appreciated.

Babu.
.

Jul 21 '05 #2

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

Similar topics

17
by: Peter Foti | last post by:
If I have a page located at: http://www.mysite.com/mypage.asp And I want to move this to: http://www.mysite.com/mypage/ Which is actually: http://www.mysite.com/mypage/index.asp
2
by: pv | last post by:
Hi everyone, I need help with following scenario, please: Users are accessing same web server from intranet (users previously authenticated in Active Dir) and from extranet (common public...
10
by: et | last post by:
I have an asp.net program that uses a connection string, using integrated security to connect to a sql database. It runs fine on one server, but the other server gives me the error that "Login...
14
by: clintonG | last post by:
This is an appeal for peer support sent to Microsoft as will be noted in closing. The Login control does not include a Cancel button. The only option is to convert the Login control to a...
1
by: Babu Mannaravalappil | last post by:
My Windows application (C#) has a login screen and a user table to handle user rights and accessibility. This is independant of the OS level user security. At the time of launching the...
1
by: Friends | last post by:
Hi I need to set security for row level but not based on Database user's login. It should be based on the user table login. For the particular user I need to allow only the particular records to...
0
by: Dorte | last post by:
Hi, I have an ASP.NET application where the user can enter an IP address, windows login and password information for remote servers (connected to the same network). The information is stored in...
3
by: =?Utf-8?B?TWFyY0c=?= | last post by:
I have a Server.Transfer in my asp:Login LoggedIn event handler. I am forcing transfer to a specific page since I do not want to use the ReturnURL that is in Request.Params (i.e., the user...
6
by: Kat | last post by:
Every time I attempt to run a localhost website, it asks me for a login, as if I am not a user on the local machine. I am a user on the local machine, I am an admin on the local machine. I am not...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
0
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...

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.