473,326 Members | 2,136 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,326 software developers and data experts.

User Sessions

I am novice programmer. The website of the company I work allows users to
sign in in an individual basis. This means that the same user can only be
logged to the site more than once simultaneously. The site checks for the
username of new sessions. If it's the same, the code terminates the previous
session.
We have to log all activities in the site. If a user attempts to login more
than once, we have to log the IP address of the previous session, the browser
type of the previous session, and the same info for the new session to a
database. That is where I come in. I am not sure how to save the information
(i.e. IP Address, browser type, etc) from session to session. How do I go
about this? I tried writing a session variable at the Session_Start method,
but it gets overwritten every time a new session starts. I need help on this
as soon as possible.

Thanks,
Hecdtor
Jul 21 '05 #1
2 1242
store it in the application object at session on start, and remove it again
at session on end. If you find it already exists then its a duplicate user.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"hecsan07" <he******@hotmail.com> wrote in message
news:78**********************************@microsof t.com...
I am novice programmer. The website of the company I work allows users to
sign in in an individual basis. This means that the same user can only be
logged to the site more than once simultaneously. The site checks for the
username of new sessions. If it's the same, the code terminates the previous session.
We have to log all activities in the site. If a user attempts to login more than once, we have to log the IP address of the previous session, the browser type of the previous session, and the same info for the new session to a
database. That is where I come in. I am not sure how to save the information (i.e. IP Address, browser type, etc) from session to session. How do I go
about this? I tried writing a session variable at the Session_Start method, but it gets overwritten every time a new session starts. I need help on this as soon as possible.

Thanks,
Hecdtor

Jul 21 '05 #2
The username of the visitor is not yet available at Session OnStart. I need
to check the username to make sure the request comes from the same user.

Hector

"John Timney (ASP.NET MVP)" wrote:
store it in the application object at session on start, and remove it again
at session on end. If you find it already exists then its a duplicate user.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"hecsan07" <he******@hotmail.com> wrote in message
news:78**********************************@microsof t.com...
I am novice programmer. The website of the company I work allows users to
sign in in an individual basis. This means that the same user can only be
logged to the site more than once simultaneously. The site checks for the
username of new sessions. If it's the same, the code terminates the

previous
session.
We have to log all activities in the site. If a user attempts to login

more
than once, we have to log the IP address of the previous session, the

browser
type of the previous session, and the same info for the new session to a
database. That is where I come in. I am not sure how to save the

information
(i.e. IP Address, browser type, etc) from session to session. How do I go
about this? I tried writing a session variable at the Session_Start

method,
but it gets overwritten every time a new session starts. I need help on

this
as soon as possible.

Thanks,
Hecdtor


Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: fr? | last post by:
Hi, i have a website , on wich users have to log in credentials are checked against mysql db some session vars are set during login for use somewhere else in the code. Is there a way to...
15
by: Joshua Beall | last post by:
Hi All, What is the best way to use a cookie to remember a logged in user? Would you store the username and password in two separate cookies? Should the password be plain text? Hashed? Not...
2
by: marslee | last post by:
I want to prevent non-registered users to view a page in my website, For example, when a non-registered user clicks the history page, the website site refuses to go there since he is not...
2
by: d.schulz81 | last post by:
Hi all, We have about 10 different domains that are linked very closely and we want to identify and track every single user that surfs our websites. Later we want to analyse user paths and find...
4
by: Matt Anderson | last post by:
When I use Xcopy to deploy my changes to IIS, it seems to drop the user connections; i.e., empties out their Session variables, etc. I thought ASP.NET was supposed to use shadow deployment and...
3
by: Dave Smithz | last post by:
Hi there, I have a website where users can log into. This users sessions as I believe most people use when implementing a login section of a website (each php page first checks a valid parameter...
13
by: Mickey | last post by:
Hi all, Currently I use a timestamp to log users out after 15 minutes of inactivity. However I also need to log a user out if they have just left the page. I need to do this because I store...
2
by: mktselvan | last post by:
Hi, Existing running oracle application 11i (11.5.8) Database version is 8.1.7.4 There is any command / way to know the number of concurrent users for this application. ...
5
by: Andy | last post by:
I have an admin section of my asp.net 2 application, and I want to be able to automatically login as a different user (Forms Authentication) whilst keeping my current session going too. The problem...
3
by: at_the_gonq | last post by:
Hello, I am hoping to get some guidance on the following scenerio: I have a password protected site where users have various permissions. Are sessions the best way of storing the user's id? ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.