Web dev and programming discussions forums
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account
List archives

Zend_Session::rememberMe

quickstart, 1.10.2 and zf.sh
(34 lines)
Re: Zend_Session::rememberMe
(25 lines)
Mar 10, 2010
Umpirsky
Umpirsky
I have usual remember me checkbox in my login form, if it's checked

Zend_Session::rememberMe(604800); // 7 days

But it seem not to work. I use default session storage.

Any idea?

Regards,
Sasa Stamenkovic.



Reply
Tags: stamenkovic, sasa, idea, storage
Messages in this thread
Zend_Session::rememberMe
reply Re: Zend_Session::rememberMe
(14 lines) Mar 10, 2010 08:31
Similar threads
Re: Zend_Session::rememberMe
It's 1440.

Regards,
Saša Stamenkovi?


On Wed, Mar 10, 2010 at 11:47 AM, David Muir [via Zend Framework
Community]
<ml-node+1587221-1908033491-51### @n4.nabble.com<ml-node%2B1587221-1908033491-513### @n4.nabble.com>
 wrote:

 You'll need to check the php ini setting:
 session.gc_maxlifetime

 default is 1440, so the session garbage collector is probably wiping
the
 session files earlier.

 Cheers,
 David


 
LogIn with SessionId's and RememberMe-Function
Hello,
i'am doing my own Login-Script.
I realized it with Sessions.
I see on may loginpages that you have a switch that the computer
remember your login.
how to make this?
do i have to create an extra cookie and if it is there i start a new
session.
or are there possibilities to prolong a session.
what do the profs do like ebay?



For information or project assistance please visit :
http://www.360psg.com


Re: Zend_Session setId
I'm integrating uploadify, because of Flash Cookie Bug
(http://swfupload.org/forum/generaldiscussion/383) I need to set session
ID.
So, I have same problem, can anyone help? 

How to restart session with new session ID?

Regards,
Sasa Stamenkovic.



Problem with error suppression in Zend_Db_Adapter_Sqlsrv when combined with Zend_Session
I am using a database to store sessions and ran into a conflict
between Zend_Db_Adapter_Sqlsrv and Zend_Session. I am testing version
1.1 of the SQL Server Driver for PHP to see how it works with UTF-8
text, and added CharacterSet = 'UTF-8' to the driver_options array.
However, Zend_Db_Adapter_Sqlsrv attempts to resolve the configuration
value as a constant first, and if undefined then to use the value as a
string. This is achieved by using the error control operator to
suppress warnings when calling constant() on line 150:

$constantValue = @constant(strtoupper($value));

The problem is that Zend_Session registers a custom error handler so
it can convert PHP errors into exceptions, which means that it catches
the warning even though it should be suppressed. Since it's an
exception, it bubbles up and kills the page. I think I can handle the
exception, but I think a better solution would be to change the logic
in Zend_Db_Adapter_Sqlsrv to first check if the constant has been
defined before calling constant() rather than running the function
with the error control operator to ignore the warning in the case a
constant with that name has not been defined.

Instead of this:
<?php

                    $constantValue = @constant(strtoupper($value));
                    if ($constantValue === null) {
                        $connectionInfo[$option] = $value;
                    } else {
                        $connectionInfo[$option] = $constantValue;
                    }
?>

How about this:
<?php
                    $connectionInfo[$option] =
defined(strtoupper($value)) ? constant(strtoupper($value)) : $value;
?>

Andrew


Zend_Session::start causes Apache to hang after the session is created
I'm having an issue after installing a Zend Framework application on a
shared host environment.

The app itself works fine until I try to login. I'm using Zend_Session as
the session mechanism. As soon as I try to log in, the application
completely indefinitely hangs.

This happens after a session object has been created on the server for a
client. I've narrowed it down to the second Zend_Session::start() call
that
gets made.

I know the site worked perfectly fine on my own server (CentOS5.3 with php
5.2)

Anyone ever had any similar problems?


Rare error "Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'Zend_Session
Hi,

From time to time (pretty seldom), I have the following error when I want
to
access one of my sites in Zend Framework. I have the same problem on all
my
sites (and some are on different web hosting companies, so it is ZF
related).

Fatal error: Uncaught exception 'Zend_Session_Exception' with message
'Zend_Session::start() 


In the .htaccess file (in root web directory), I have the following
content:

RewriteEngine on
RewriteCond %{REQUEST_URI} !cron*
RewriteCond %{REQUEST_URI} !robots.txt
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php
php_value session.auto_start 0

Is anyone having the same issue ?
I don't know how to fix that problem ... Thank you.