Answer the question
In order to leave comments, you need to log in
Difference between sessions and session emulation?
While in theory, so I can not make a benchmark
1) Sessions - are stored in the tmp folder as files inside which are, and sql queries and html, and service data.
2)
CREATE TABLE `admin` (
`id` INT NOT NULL AUTO_INCREMENT,
`login` VARCHAR(40) NOT NULL,
`pass` VARCHAR(40) NOT NULL,
`hash` CHAR(40) ,
PRIMARY KEY (id),
UNIQUE login_unq(login),
UNIQUE hash_unq(hash)
);
Answer the question
In order to leave comments, you need to log in
Sessions in files are fu: there can be problems with locks (here I wrote about this toster.ru/q/54276#answer_198530 ) + this option does not scale. Although for a small site, the option on files is quite suitable.
I switched to storing the session in a sql or nosql database a long time ago.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question