Solved

create session for loginname

Posted on 2007-04-06
4
567 Views
Last Modified: 2008-02-01
this  code writes on my page the login name of the authenticated user <asp:LoginName ID="LoginName1" runat="server" BackColor="Transparent" Width="172px" CssClass="bodybold" />

how can i create a session  of that name so i can insert into db
0
Comment
Question by:gianitoo
  • 2
  • 2
4 Comments
 
LVL 67

Accepted Solution

by:
sirbounty earned 500 total points
ID: 18865424
You mean something like this?

Session("ThisSession")=LoginName1
0
 
LVL 1

Author Comment

by:gianitoo
ID: 18865433
yes.  so that will create a session and i can do whatever i want with that name?
0
 
LVL 1

Author Comment

by:gianitoo
ID: 18866249
is not working it gives me this as the result  System.Web.UI.WebControls.LoginName

how can i create a sesion  for the name of the authenticated user by using windows authentication
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 18866481
Sorry for the delay - glad you got it sorted.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now