# Session store in memory.

- Thread: https://externals.io/message/304
- Original archive: https://news-web.php.net/php.internals/304
- Started by jansun@pobox.sk on 2003-03-26T13:02:55+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #304 — jansun@pobox.sk — 2003-03-26T13:02:55+00:00

URL: https://externals.io/message/304#304

Hi




I have one idea. Store session data in memory instead file. It's fast 
when file. Yes I know when script is finish all data is delete. But 
this can be same like file session. But in memory.




        Akelavlk



====================== REKLAMA =================================
Vyrazne zlavy pocitacov a prislusenstva
Toshiba Pocket PC e740 v cench u? od 24.300,- Sk bez DPH
Navstivte nas na adrese http://www.somi.sk/akcie.php
================================================================

---

## #305 — Sander Roobol — 2003-03-26T13:10:56+00:00

URL: https://externals.io/message/304#305 · In reply to: #304

> Hi
> 
> I have one idea. Store session data in memory instead file. It's fast 
> when file. Yes I know when script is finish all data is delete. But 
> this can be same like file session. But in memory.

There already are various ways to do this:
-enable mm support for session storage (--with-mm)
-store your session files on a ramdisk
-use ext/shmop

Sander

---

## #313 — Chris Field — 2003-03-26T15:47:45+00:00

URL: https://externals.io/message/304#313 · In reply to: #304

You can do this your self using shared memory segments and custom
session handling functions.  There are lts of good reasons to leave them
in files, one is that you can have an NFS volume that a group of servers
can share letting you have the luxury of sessions behind a loadbalancer.






> Hi
> 
> 
> 
> 
> I have one idea. Store session data in memory instead file. It's fast 
> when file. Yes I know when script is finish all data is delete. But 
> this can be same like file session. But in memory.
> 
> 
> 
> 
>         Akelavlk
> 
> 
> 
> ====================== REKLAMA =================================
> Vyrazne zlavy pocitacov a prislusenstva
> Toshiba Pocket PC e740 v cench u? od 24.300,- Sk bez DPH
> Navstivte nas na adrese http://www.somi.sk/akcie.php
> ================================================================
-- 
Chris Field
cfield@affinitysolutions.com
Affinity Solutions Inc.
386 Park Avenue South
Suite 1209
New York, NY 10016
(212) 685-8748 ext. 32
