Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

php - Zend_Auth using Zend_Session instead of default storage? -


i reading through this tutorial, , @ 1 point in code, user info retrieved database , session created user:

// default storage session namespace zend_auth   $authstorage = $auth->getstorage();   $authstorage->write($userinfo); 

i tried this, session expires once browser closed. question how combine zend_session create cookie lasts 20 days or something? can't figure out through zend_session documentation..

any appreciated! thanks

don't mix 2 different tasks. 1 task have "authentication", "remember me feature".

so don't try solve them in 1 shot.

for remember me store another cookie random hash , keep table assotiates each random hash particular user_id.

also, lot of discussions "remember me" implementations here @ so: http://www.google.ru/search?q=site%3astackoverflow.com+remember+me&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:ru:official&client=firefox


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -