php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #79229 CLI would greatly benefit from full session support
Submitted: 2020-02-05 10:48 UTC Modified: -
From: fidhleir99 at gmail dot com Assigned:
Status: Open Package: Session related
PHP Version: 7.4.2 OS: FreeBSD 11.3R
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
39 - 21 = ?
Subscribe to this entry?

 
 [2020-02-05 10:48 UTC] fidhleir99 at gmail dot com
Description:
------------
I do quite a lot with php from the command line --I strongly prefer it over the unix shell languages, it's much quicker to use for utility development than C, and much more stable for big jobs than running them in a browser.

It didn't occur to me that the CLI might not have full session support since it's such a natural for preserving state.  So I spent a frustrating day yesterday trying to debug the problem I was having getting my test session to resume.  It wasn't until I was falling asleep last night that the penny dropped:  maybe the CLI doesn't *have* proper session support??

Yep.  That's what it was, of course.

Now that I know what's going on, I can work around it.  But it would be *very* nice to be able to use the same code in both environments.  Yesterday's problems seemed to be centered on the CLI's inability to store and retrieve the session cookie.  But that ought to be a really easy fix:  store cookies in the same subtree used for php.ini, which in the case of freebsd is /usr/local/etc. 

I know everyone is always busy, but if you did a survey I think you'd find that quite a few people would benefit from the CLI having full session support.


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 15:01:28 2024 UTC