|
|
|
|
|
| | |
| |
Active Server Pages ASP a directory of ASP tutorials applications scripts components and articles for the novice to professional developer. CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
|
|
Subject: |
session_onstart |
|
From: |
srinivasan |
|
Date: |
4/25/2001 12:43:21 AM |
|
IP: |
192.169.41.43 |
Hi guys,
My session onstart event is not functioning properly. following is the code, i am using
Sub Session_OnStart()
set objcom = Server.CreateObject("Adodb.connection")
objcom.open Application("Firstproject_ConnectionString")
objcom.Execute "insert into sess(user) values(235)"
objcom.Close
Session("user")=session.SessionID
End Sub
in this, Session("user")=session.SessionID is functioning without any problem the problem is it is inserting a new record in the database
the same coding if it is pasted in an another asp page it runs fine. Any suggestion pls.
thanks
srini
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|