Lawrence Barsanti
Lawrence Barsanti

Reputation: 33222

How are PHP sessions saved by default?

I have not changed any of the configuration options for sessions in my php.ini.

session.save_handler = "files"
session.save_path    = ""
session_save_path()  = ""

From what I read, if I change php.ini to something like, session.save_path = "c:\tmp\", all the session will be stored as files in c:\tmp.

My question is, how/where are the sessions being stored when I use the default configuration?

Upvotes: 2

Views: 2310

Answers (2)

Peter Bailey
Peter Bailey

Reputation: 105878

I would imagine it's wherever your OS stores temp files by default

In *nix it's /tmp/

In Windows I believe it's C:\Windows\Temp

Upvotes: 5

Greg
Greg

Reputation: 321588

They should be saved in the system temporary directory - usually something like c:\windows\temp

Upvotes: 1

Related Questions