Class | CGIKit::Session |
In: |
lib/cgikit/session.rb
|
Parent: | Object |
A class for session management. Session objects have a hash of arbitary objects and information about browser name, IP address, etc. However, you can’t set objects that can’t be marshal ( IO, Proc, etc. ) to the session with default database manager FileSessionStore.
DEFAULT_SESSION_ID_FIGURES | = | 16 |
DEFAULT_TIMEOUT | = | 60 * 60 * 24 * 7 |
store_in_url | -> | store_in_url? |
store_in_cookie | -> | store_in_cookie? |
auth_by_user_agent | -> | auth_by_user_agent? |
auth_by_remote_addr | -> | auth_by_remote_addr? |
application | [RW] | |
auth_by_remote_addr | [RW] | Enables or disables session authorization by IP addresses. |
auth_by_user_agent | [RW] | Enables or disables session authorization by browsers. |
caches | [RW] | |
context | [RW] | |
context_ids | [RW] | |
cookie_expires | [RW] | |
frame_components | [RW] | |
last_accessed_time | [RW] | |
permanent_caches | [RW] | |
remote_addr | [RW] | IP address. |
session_id | [RW] | Session ID. |
session_key | [RW] | |
session_store | [RW] | |
store_in_cookie | [RW] | Enables or disables the use of cookies for storing session IDs. |
store_in_url | [RW] | Enables or disables the use of URLs for storing session IDs. |
timeout | [RW] | Seconds until the session has timed out. |
user_agent | [RW] | Name of browser. |
values | [RW] | A hash of arbitary objects. |