If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Informix 7.30 Sessions

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-11-04, 02:32
Hedron Hedron is offline
Registered User
 
Join Date: Nov 2003
Posts: 7
Informix 7.30 Sessions

Hi.

I have the following question:

I must log every user entering end exiting the server. The problem is that I must log not only the existance of the user, but the time when he logs in and the time when he logs out. I know how to extract the data when the session is started from the sysmaster base, but I cant catch the time. Please you if have any ideas, answer.
Reply With Quote
  #2 (permalink)  
Old 10-11-04, 09:30
artemka artemka is offline
Registered User
 
Join Date: May 2004
Location: New York
Posts: 248
a little more info?
is this a unix or the ODBC session?

if unix, you can have the .profile do something of it is an ODBC session
you can do a little stored procedure or a trigger on a login table or something

Hope this helps

Cheers

Artem
Reply With Quote
  #3 (permalink)  
Old 10-12-04, 02:26
Hedron Hedron is offline
Registered User
 
Join Date: Nov 2003
Posts: 7
Whell It is a Micro$oft Windows NT4 machine, no matter how strange it looks.
And I have to Log every user that logs in and out of the informix server, using a specific program. In whitch time that happens, how long it has been there, when it has left.
The real problem is that I know how to make it via program (I can write this program), but I do not whant to write a program that compares two states - current and previous. I wander if there is a way to detect the time that user logs in and logs out, using the sysmaster database.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On