| | |
Help: Need to access database when session times out
Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Sep 2007
Posts: 1,080
Reputation:
Solved Threads: 68
Hello, I need to access the database when a session unexpectedly ends or session times out. This is just for telling the database to update a field for when the user last logged in. The reason I need this is that it saves me tons of coding for other stuff so I do not have to use excess database ruitines, excess functions, etc.
Please if you know how to force the server to do an update on session timeouts or unexpected ends, please help.
asp.net 2.0
vb.net or lower
MySQL
Please if you know how to force the server to do an update on session timeouts or unexpected ends, please help.
asp.net 2.0
vb.net or lower
MySQL
•
•
•
•
Hello, I need to access the database when a session unexpectedly ends or session times out. This is just for telling the database to update a field for when the user last logged in. The reason I need this is that it saves me tons of coding for other stuff so I do not have to use excess database ruitines, excess functions, etc.
Please if you know how to force the server to do an update on session timeouts or unexpected ends, please help.
asp.net 2.0
vb.net or lower
MySQL
i.e. session start / end, application start / end even an event for request if the need for validation is so great.
something like
ASP.NET Syntax (Toggle Plain Text)
Sub Session_End(ByVal sender As Object, ByVal e As EventArgs) Dim cnn as new ADODB.Connection cnn.connectionstring = "YOUR CONNECTION STRING" cnn.open cnn.execute("your SQL query") cnn.close() cnn = nothing End Sub
but why not change this value on login seeing as it is LAST '''LOGIN''' DATE
When Autumn Falls [ http://www.whenautumnfalls.co.uk ] &&
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
•
•
Join Date: Sep 2007
Posts: 1,080
Reputation:
Solved Threads: 68
Because I will be making "new" messages appear through loging dates. An example is below:
If someone created a new marketing account, then the link will say [new]. It will only say new the first time a person logs on. So if last login date is earlier than the account was created, it will display the new symbol. After a person logs out, their lastlogin date will be updated to be LATER than the date the marketing account was created.
It's a simple and easy way to show "new" symbols without having to use files or databases. Because it is only for the admin area, it is not as important to keep track whether or not the new account was viewed.. you know what I mean?
If someone created a new marketing account, then the link will say [new]. It will only say new the first time a person logs on. So if last login date is earlier than the account was created, it will display the new symbol. After a person logs out, their lastlogin date will be updated to be LATER than the date the marketing account was created.
It's a simple and easy way to show "new" symbols without having to use files or databases. Because it is only for the admin area, it is not as important to keep track whether or not the new account was viewed.. you know what I mean?
your welcome
When Autumn Falls [ http://www.whenautumnfalls.co.uk ] &&
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
![]() |
Similar Threads
- VB: Connect to Access database via ODBC datasource name (Visual Basic 4 / 5 / 6)
- Running a VB application with MS Access database (Visual Basic 4 / 5 / 6)
- Writing to an Access Database (Visual Basic 4 / 5 / 6)
- Create an Access Database using Java (Java)
- Frontend HTML, Backend MS Access Database?? (Database Design)
- Writing to an Access Database using Java... (Java)
Other Threads in the ASP.NET Forum
- Previous Thread: Help me in my project: web site for managing international scientific conferences
- Next Thread: crystal reports in asp.net
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol advice ajax appliances asp asp.net beginner bottomasp.net box browser businesslogiclayer button c# c#gridviewcolumn cac checkbox class click compatible confirmationcodegeneration content contenttype control countryselector courier css database datagrid datagridview datalist deadlock deployment development dgv dialog dropdownmenu dynamic dynamically edit embeddingactivexcontrol fileuploader fill findcontrol flash flv forms gridview gudi homeedition iframe iis javascript jquery list menu mono mssql multistepregistration nameisnotdeclared novell objects opera order problem ratings redirect registration relationaldatabases reportemail rotatepage search security serializesmo.table sessionvariables silverlight smartcard smoobjects software sql ssl tracking treeview validatedate validation vb.net virtualdirectory vista visual-studio visualstudio vs2008 web webapplications webarchitecture webdevelopment wizard xml xsl






