473,394 Members | 1,748 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.

Storing the LoginName in a variable.

Hi,
I have a LoginName1, LoginView and Login Status on my Master Page. Whenever a user logs himself in, the LoginName1 displays (as for example):

Welcome omarakhtar

Now the only thing I want is how to store this omarakhtar into some variable? Kindly, let me know.

Thanks in regards.
Aug 13 '10 #1
1 1744
Frinavale
9,735 Expert Mod 8TB
You should really look into using Forms Authentication. It will suit your needs a lot better.

But, if you want something quick and don't need to do any authorization stuff then consider storing something in Session that indicates that the user is logged in. Check this variable every time the user accesses any page in your website to determine if they are "logged in".

-Frinny
Aug 16 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: bartek d | last post by:
Hello, Regarding my previous question about a class which is used to store a variable type vector. I tried to be more elaborate on the code. I'd be grateful for your suggestions. Am I going in...
3
by: r rk | last post by:
I am trying to write a utility/query to get a report from a table. Below is the some values in the table: table name: dba_daily_resource_usage_v1...
1
by: SteveS | last post by:
What's the difference in using the private variable as opposed to the actual property in a class module? Which is better or more efficient? ( LoginObject.Save (_loginName) or LoginObject.Save...
5
by: david | last post by:
I want to give the user the ability to change a setting. Example Discount rate = .4 value stored in record 1 tblSettings.Discount the user will be able to change the value through a form...
1
by: Daniel Groh | last post by:
Hi Sirs, I have the following code: //Method LinksPages() if(drPages.HasRows) { while(drPages.Read()) { string strAdress = "<a href='" + drPages + "'>" + drPaginas + "</a> &nbsp;&nbsp;";...
5
by: Peter | last post by:
Hello! I Have a problem. I try to use asp.net page-wide variable but it is not working. I declare my boolean variable (eg. bool done=false) in the same place where page's web controls are...
0
by: Sanket80 | last post by:
Hi I am trying to write a VB Code to automate creation of Pivot Table The code starts as below ----------------------------------------------------------------------- Workbooks.Open...
2
by: yahalom | last post by:
I need to do the following. I want a variable ($var1) to be stored in ($var2). This is what I have done: #!/usr/bin/perl @var1 = `cat ~/data.txt`; #this file contains also IPs which I...
5
by: RTaylor1853 | last post by:
I've got a textbox that when in form view it displays the users name just fine. but when i go to set the control source to the LoginName so it saves it to the table I get this error: Run-time...
10
by: NitinSawant | last post by:
Hello, I'm new to php, I'm storing temp variable in SESSION $_SESSION='value'; when i go from one php page to other php page, the session variable is accessible but when i go...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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.