Solved

create session for loginname

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

839 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