I have a login with a remember checkbox. I'm tring to set lifetime of session to 1 year if the remember checkbox is checked, but no matter what I tried, it doesn't work... Symfony profiler always say that session lifetime is 0.
That's what I tryed in my controller function:
$this->getRequest()->getSession()->set("gesaudit",array("login"=>true,"user"=>$user));
if($remember == "1"){
$lifetime = new NativeSessionStorage();
$lifetime->setOptions(array('cookie_lifetime' => 31557600));
}else{
$lifetime = new NativeSessionStorage();
$lifetime->setOptions(array('cookie_lifetime' => 0));
}
Run Code Online (Sandbox Code Playgroud)
当我在网上发送表单时,插入查询使用函数now()将当前日期保存在我的数据库中.
现在,我正在尝试以分钟格式获取此列以计算我需要的其他想法,但我不知道该怎么做.
例如,我有这个:
"2013-05-08 08:30:00"
我想要这个(现在是8.50):
"20"< - 分钟
谢谢
当我加载Web时,DHTMLX Scheduler加载当天(今天)的视图.但是,如果我去其他过去的日子,我可以获得约会吗?例如:
今天= 02/05/2013
我使用左箭头显示25/04/2013的事件.然后,使用javascript,我可以得到像使用scheduler.init("",date,"")直接将调度程序重新加载到此日期之类的操作吗?
谢谢.
我有一台Zebra Gk420t打印机,可以让我制作贴纸,我需要在它们上面打印图像.我读到图像必须是GRF格式(纯十六进制).
有人知道如何在Linux中将图像转换为GRF格式?我在Windows上读到了关于Ztools的软件,但在Linux上没什么有趣的......