16 lines
412 B
Go
16 lines
412 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
// WebSession represents an authenticated HTTP session.
|
|
// These are stored in the web_sessions table and referenced by a
|
|
// cookie sent to the browser. This gives the HTTP file server the
|
|
// same user identity and security level checking as the telnet side.
|
|
type WebSession struct {
|
|
Token string
|
|
UserID int64
|
|
UserName string
|
|
CreatedAt time.Time
|
|
ExpiresAt time.Time
|
|
}
|