Solved

create session for loginname

Posted on 2007-04-06
4
566 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

747 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

11 Experts available now in Live!

Get 1:1 Help Now