Logged In As: Username
i set up a login page and when the user logs in he/she is directed to the main site. What I wish to know is how can I show the user name that is logged in the main site:
For example:
Logged in as:
Username
tell me the code as i am new to ASP .
View Replies
ADVERTISEMENT
When a User has Loged In to my site, I would like to display Logged In as:
and then a link to log them out of the site Code:
View Replies
View Related
How do we have a track of users who have logged in? I want to have a table of record with usernames and the status(logged in or logged out).
Whenever the user logs in, the status shud indicate he is logged in and when he logs out the status shud change accordingly. Does anybody know how to do this???
View Replies
View Related
I want to create a page in ASP language which gives me information about
currently logged users. I thought to do it by this way: when somebody
will log in to page, there will be a value of this user id stored in the
table among the other fields in the form which are filling in. After
clicking on the button "Log off" the value of the user id will be
deleted from the MS SQL Server 2000 database. I would do it, but I don`t
know how to solve the problem when somebody will close the Internet
Explorer window by clicking "x". Then the procedure of deleting a value
of user id will not call, and this value will be still stored in the
database, so I will not have actual state of currently logged users.Maybe there is another possiblity to do it?
View Replies
View Related
I have a website where about 300 to 500 are logged in all the times. I am trying to find a way to see who's logged in right now.I learned that session variables can produce such an outcome. Every member, who is logging in, is recognized by saving that member's unique user ID in a session variable.
View Replies
View Related
i have the following script in one of my logged in pages.
Active Users: <%=Application("CurrentNumberOfUsers")%>
Is there any code that I can add to this which also hows who is logged in to the website?
View Replies
View Related
I need some asp code that can give me the user that is logged on to the PC.
View Replies
View Related
it was possible to query the logged in windows user from a remote machine. I'm thinking of designing a website that will tell you what users are logged in where. This isn't really necessary but I thought it might be nice to know and keep track of users.
View Replies
View Related
I'm developing an intranet site that will require knowing who is accessing the site. Since all of my users are using a WIndows domain, I figured I could cut the necessity to log into the intanet site if I could identify each user based on who is logged into the workstation being used to access it. So I figured I would need some Microsoft-specific tech to get this done.
Is something like this even possible? I figure ASP .NET would be my best hope, but seeing that I've never programmed for a Microsoft environment, I would need some coaching. Here's how I thought this could be accomplished (I may need some help filling in the details):determine the IP of the machine accessing the sitedetermine which machine on the network currently has that IPask Active Directory who is currently logged into that machineI don't know that this is possible in this manner, though. Anyone accomplish something like this before? I would think so as it seems like something a lot of developers would want for web applications.
View Replies
View Related
below is an insert statement on an asp page that stores the date and time
that a driver logged on, what I need is to check that they are now already
logged on fields are SQL Server 2000
ID int
DRIVER_NO int
ON_DATE datetime
OFF_DATE datetime
ON_NOW nvarchar
SESSION_ID int
The ON_NOW column reads on or off depending whether the driver logged out or
not, if they havent we need to close the previous logon session and mark it
with 'off' and enter a date time into OFF_DATE column. Code:
View Replies
View Related
I am trying to build an sqldatasource using a parameter which I want set to the currently logged in user's username. Any idea how to declare the parameter in the <SelectParameter> tag? I am using .net 2.0...
View Replies
View Related
I would like to know how to let users log in to my page and keep track of them until they log out? Will i be using cookies or what?
View Replies
View Related
I use a database to authenticate users. Thier logon info is stored in a session.When the session times out it redirects the user back to the login page,which, when logged in sends them to the secured homepage.How can I return them to the page they were on when the session timed out,rather than starting over on the homepage?
View Replies
View Related
I have the Oracle not-logged on error that keeps popping up intermitently. When I restart the web server the problem is solved and everything is fine. I am unable to figure out what the problem is?
I do not have this problem with other websites running on the same web server. Can any one advise about what I need to do to solve this or atleast what direction I need to look?
View Replies
View Related
I have a LOGIN.asp page which will ask the user to input their username and password. The text box name for this two text field is txtUsername and txtPassword. What i want to do is to display the value of "txtUsername" in my main page after the user has logged in! That means what ever that the user enter in the username text field, it will be display in the next page. how to code this in ASP session variable?
View Replies
View Related
I have an asp website which allows registered users to login in, I want to create a page which shows the names of all logged in users. Can i do this in asp, and if possible can some one tell me how can i let the logged in users communicate with each other.
View Replies
View Related
how i can pull the logged in user name from a computer for a web form? this is what i did to pull from the cookie when user log into my site but now i want to get request from non site users but capture non logged in users ids too.
~ <input type="text" name="EmailID" maxlength="10" size="10"
Value="<%=Request.Cookies("NPSC")("UserName")%>"
~
View Replies
View Related
This is the code for my default asp page.
<%
'Check if user is logged in
if Session("name") = "" then
'If not, go to login page
Response.Redirect("login.asp")
else
'If, build page
Response.Write("<title>ASP Page</title>")
end if
%><body leftmargin="100" text="#004080" bgcolor="#EBEBEB"><p><font size="6">
I want users that have been logged on successfully to be redirected to a website address that I specify.
Any Ideas?
View Replies
View Related
I last posted to this group about 6 months ago and was very pleased by the
excellent response I got and the great help offered to me. I am back this
time with another request for your expert help on a bit of ASP code I use on
my windows server 2003 with IIS6 machine.
I would like the code below to display in different colours depending on the
status of the page. I am looking to make the not logged in code appear red
and the logged in code green.
The code:
View Replies
View Related
How to get the Windows current logged user name using Classic ASP. If no direct way are there any work arounds.
View Replies
View Related
My asp application allows a number of users to log into it. Each user has a different type of access level (General User, Manager or Administrator). I want the administrator to be able to see how many other users are logged into the application at a particular time. How can I do this? Would the use of an application object work for this?
View Replies
View Related
How can I get the user ID (Novell 5, IIS5 on Windows 2000 Server) using ASP?
I did find an example using JavaScript however it uses an ActiveX control
and then all my users would have to click OK to allow the control to run.
Or I could change the security setting, but we are talking over 1,500
machines.
View Replies
View Related
I have this asp page (see code below). It grabs the values from the previous page and populates the email which gets sent to the recipient from the person bidding on his product. I need to grab the bidder's email address (he is logged in when sending this email) from the database.
I can't seem to figure out the code for grabbing a logged in visitor's information from the database to display in the "From" field. Can anyone help? I need the code that grabs his email address, and the code that goes in the "mailer.from" variable to populate that field. Here's the code:
View Replies
View Related
Is it possible to use API to get the network username? I am using it in Access and want to use the same function in my ASP page
View Replies
View Related
all ive done is a very simple form to post comments onto a noticeboard......using asp and access for now, all i want to be able to do is when its submitted it also sends the Windows username of the person who has submitted it to the database automatically so i can then show it on the noticeboard.
View Replies
View Related
How to use WIndows XP login username and password for ASP 3.0 Authentication, for access to a website directly without any further, second authentication by ASP page?
I have MS SQL Server database, ASP 3.0 website, and ASP 3.0 based authentication. I want to use a Windows XP username, make a table with approved usernames, check Windows XP username and password against the mentioned table, and finally - user can access the site without second authentication by ASP page. Of course - everything should work in IE.
View Replies
View Related
I need to let one person view certain things without having this perons
login. This person is logged in to the microsoft network. How do I get
that info into a variable?
View Replies
View Related
I have a problem with ("auth_user") in asp,I try to use windows
username and password in asp page for limitation user access to pages,
but this server variable returns empty string
View Replies
View Related
ok, well what I have been having some trouble with is to show the person character name like this:
Welcome, 'Username' <-- Here I want it to show the persons username from the database.
View Replies
View Related
i would like users to be able to login using a username and password stored in an MS ACCESS database. there is a customer table which stores the username and passwords as well as other customer details such as customer name, address etc. i would like the users to login and then when the login i succcessful, be presented with ONLY THEIR data which they can edit.
View Replies
View Related
I have a Username:, Password:, Sign In and Regester Here at my Main Page. And at my Regester Page I have a First Name:, Last Name:, Address:, Date of Birth:,Status:, Country: and ZipCode. And also at my Database Name is Info.
All I want is that when a User Log In a Message will display and say's (You are not Regestered, Sign Up First...), but If he is already regestered he can sign in by using his username: and password:. Please!, can anyone give me an ASP Code on this.
View Replies
View Related
I'm creating a set of new user pages for my site. At present I've got a newuser1.asp file which tests if a username exists. On failure (when the username exists) it goes an almost identical copy of the file and the user has to try out a new username and password.
This seems rather inelegant (having to upkeep two files) so I'd like to have just the one page with the failure redirecting back to itself but then displaying appropriate wording ('the username exists.so that I can try to work out an appropriate solution?BTW I'm using ASP VBscript.
View Replies
View Related
how to insert the current user's username and machine name into a couple of textboxes to be inserted into a form. I'm creating a work order system and I would like the form to be prepopulated with this information.
View Replies
View Related