Ferreteria/sql/user session
< Ferreteria | sql
Jump to navigation
Jump to search
About
- History:
- 2009-06-18 design started - first draft, not sure concept is right
- Relations: Each Template:Vbzcart has one or more Template:Vbzcarts
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 />