CI 코드

제목 [lib추가] 브라우져 닫았을때 세션종료시키기
글쓴이 ci세상 작성시각 2009/08/29 19:53:14
댓글 : 0 추천 : 0 스크랩 : 0 조회수 : 18352   RSS

위키문서 : http://codeigniter.com/wiki/PK_Session/
=> 최종업데이트 일자 : 2009년 8월 6일, 21시 58분


사용방법

view처리부분

<input type="checkbox" name="remember_me" id="remember" value="true" /> 
컨트롤러 처리부분

if ($this->input->post('remember_me')) 
{
    $this->session->expire_cookie(false);
}
else 
{
    $this->session->expire_cookie(true);
} 

<세션보안참조문서>

http://en.wikipedia.org/wiki/Session_hijacking


<구버젼의 경우에는>

http://codeigniter.com/forums/viewthread/70036/
 다음글 [팁] 404에러페이지 꾸미기 (1)
 이전글 [패키지] CI-CMS (1)

댓글

없음