139 questions
0
votes
1
answer
1k
views
Zend\Session invalid setting
I'm working with Zend Framework 3 and after configuring the session in my module.config.php, I receive this fatal error:
Fatal error: Uncaught Zend\Session\Exception\InvalidArgumentException: '...
0
votes
0
answers
312
views
ZF3 Session empty on each page load
In ZF3, I'm initializing my session as following:
config/autoload/global.php
'session_config' => [
'name' => 'gintra3',
'cookie_lifetime' => 60*60*1,
'gc_maxlifetime' => ...
2
votes
1
answer
944
views
Zendframework 3 - no zend registry
To whom it may concern:
I know I can use zend-session with zf3, yet is there a package for zend-registry to be used with Zend Framework 3?
1
vote
1
answer
518
views
ZF3 logout after some inactive session
How to auto logout session after some inactive? I want this functionality in zend framework 3.If anyone have idea then let me inform please.Currently my application logout within 5 minutes with the ...
3
votes
1
answer
193
views
same session use in zf1 , zf2 project
I have two application in zf1 and zf2 on save server, I have created login system in zf2, when i login zf2 it working fine.
Now i want to access zf2 session in zf1, it showing
[zf2_auth] => ...
0
votes
1
answer
1k
views
Set session cookie only when user is logged in
I'm building a ZF3 based application, and I'm trying to get the session cookie to be set only when a user has successfully logged in. And remove it on logout.
There seems to not be such a feature in ...
1
vote
1
answer
874
views
Zend framework 2 Session validation failed
i'm trying to display messages from flashMessenger in view file.
Add them in controller
$status = 'error';
$message = 'Wrong parameters';
$this->flashMessenger()->addMessage($message)->...
0
votes
2
answers
643
views
ZF2 get $_SESSION
I'm setting $_SESSION in a part of my application which is not routed by Zend. (myhost.local/example.php -> set $_SESSION['user'])
Now I want to access the $_SESSION['user'] in my Zend application.
(...
0
votes
1
answer
277
views
getIdentity in zf1 app when user is authenticated in zf3
I am migrating our applications from zf1 to zf3. I am authenticating the user in ZF3 and when I goto the ZF1 apps I am getting the following error.
Fatal error: Uncaught exception '...
7
votes
1
answer
153
views
ZF2 Set Zend\AuthenticationService to use second session or cookie based on url or module
I have set up two user account modules - administrator and customer. My current set-up means if you log into administrator my app thinks you're logged in as a customer also. The solution I've decided ...
1
vote
1
answer
153
views
session.upload_progress start session automatically
PHP session.upload_progress is a good library to track your upload progress, however when you send a file to server, session.upload_progress start php session automatically, that's does not play fine ...
0
votes
0
answers
559
views
Zend Framework 2 use Session to login user
I'm starting on Zend Framework 2, I did the tutorial on album, nos I want to connect users, the sign up is working, so now I diplayed a form, and now I don't know how to use sessions:
http://...
2
votes
1
answer
660
views
object variable in session container is always getting null in bootstrap
I have implemented a logic in application module's bootstrap which will redirect users to login page if they are not signed. I have
class Module
{
public function onBootstrap(MvcEvent $e)
{
...
0
votes
1
answer
182
views
Zend 2: Check who is logged using session
I'm using Zend\Authentication\AuthenticationService and I would like to know who is logged, but for now I get data only for one user.
For example:
On one browser I log in as John Doe and I get
...
0
votes
0
answers
58
views
Getting error in accessing session variable in zend framework2
I am using session container and store the arrays in a session. When i logged in then on the first time it give me undefined variable when i refresh the same page then it is working why?
$...