Ferreteria/sql/user session

From Woozle Writes Code
< Ferreteria‎ | sql
Revision as of 02:05, 19 June 2009 by htyp>Woozle (New page: ==About== * '''History''': ** '''2009-06-18''' design started - first draft, not sure concept is right * '''Relations''': Each {{vbzcart|table|shop_client}} has one or more {{vbzcart|table...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

About

SQL

<section begin=sql /><mysql>DROP TABLE IF EXISTS `shop_session`; CREATE TABLE `shop_session` (

 `ID`           INT NOT NULL AUTO_INCREMENT,
 `ID_Client`    INT NOT NULL COMMENT "shop_client.ID",
 `Token`        VARCHAR(31)  COMMENT "session identifier passed as cookie = hash(ID + WhenCreated)",
 `WhenCreated`  DATETIME     COMMENT "when session was created",
 `WhenExpires`  DATETIME     COMMENT "when session will (or did) expire",
 PRIMARY KEY(`ID`),
 UNIQUE KEY(`Token`)
) ENGINE = MYISAM;</mysql>

<section end=sql />