| 4 |
* |
* |
| 5 |
* $Revision$ |
* $Revision$ |
| 6 |
* $Log$ |
* $Log$ |
| 7 |
|
* Revision 1.5 2004/11/30 05:46:32 aga |
| 8 |
|
* ・sessionからremoteHostを削除. |
| 9 |
|
* |
| 10 |
* Revision 1.4 2004/11/26 06:24:53 aga |
* Revision 1.4 2004/11/26 06:24:53 aga |
| 11 |
* ・sessionのメンバにuserid_tを追加. |
* ・sessionのメンバにuserid_tを追加. |
| 12 |
* |
* |
| 33 |
class session{ |
class session{ |
| 34 |
private: |
private: |
| 35 |
unsigned long sessionID; //セッションID |
unsigned long sessionID; //セッションID |
|
unsigned long remoteHost; //リモートホストのIP |
|
| 36 |
time_t date; //セッション作成日時 |
time_t date; //セッション作成日時 |
| 37 |
userid_t userID; // xoops_usersのuid |
userid_t userID; // xoops_usersのuid |
| 38 |
|
|
| 39 |
void sessionid( unsigned long remoteHost, time_t date ); |
void sessionid( time_t date ); |
| 40 |
public: |
public: |
| 41 |
session(); |
session(); |
| 42 |
session( unsigned long remoteHost, time_t date ); |
session( time_t date ); |
| 43 |
~session(); |
~session(); |
| 44 |
|
|
| 45 |
sessionid_t getSessionID() const; |
sessionid_t getSessionID() const; |
|
unsigned long getRemoteHost() const; |
|
| 46 |
time_t getDate() const; |
time_t getDate() const; |
| 47 |
userid_t getUserID() const; |
userid_t getUserID() const; |
| 48 |
|
|
|
void setRemoteHost( unsigned long remoteHost ); |
|
| 49 |
void setDate( time_t date ); |
void setDate( time_t date ); |
| 50 |
void setSessionID( sessionid_t ); |
void setSessionID( sessionid_t ); |
| 51 |
void setUserID( userid_t ); |
void setUserID( userid_t ); |