Click here to Skip to main content
15,901,205 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
QuestionPhoto upload using PHP and HTML5 Pin
Jassim Rahma9-May-14 6:40
Jassim Rahma9-May-14 6:40 
AnswerRe: Photo upload using PHP and HTML5 Pin
Member 108727482-Jul-14 2:38
Member 108727482-Jul-14 2:38 
AnswerRe: Photo upload using PHP and HTML5 Pin
Weekendrockstar1-Sep-14 7:09
Weekendrockstar1-Sep-14 7:09 
QuestionSOAP-ERROR: Parsing WSDL: Couldn’t load from ‘http://domain/index.php/api/v2_soap/?wsdl=1’ : failed to load external entity “http://domain/index.php Pin
Member 77023086-May-14 19:53
Member 77023086-May-14 19:53 
AnswerRe: SOAP-ERROR: Parsing WSDL: Couldn’t load from ‘http://domain/index.php/api/v2_soap/?wsdl=1’ : failed to load external entity “http://domain/index.php Pin
Kornfeld Eliyahu Peter6-May-14 20:35
professionalKornfeld Eliyahu Peter6-May-14 20:35 
GeneralRe: SOAP-ERROR: Parsing WSDL: Couldn’t load from ‘http://domain/index.php/api/v2_soap/?wsdl=1’ : failed to load external entity “http://domain/index.php Pin
Member 77023086-May-14 20:57
Member 77023086-May-14 20:57 
QuestionAdding value to custom column added in ‘sales_flat_order_item’ table Pin
Member 77023086-May-14 19:53
Member 77023086-May-14 19:53 
Questiondestroy session after sometime Pin
Jassim Rahma4-May-14 10:14
Jassim Rahma4-May-14 10:14 
Hi,

I am using this code to destroy the session after sometime but it's not working! it's always redirecting to out file? why is that?

PHP
$inactive = 100;
    
$session_life = time() - $_SESSION['timeout'];
    
if ($session_life > $inactive)
{ exit(header("Location: out")); }
    
$_SESSION['timeout'] = time();



Technology News @ www.JassimRahma.com

AnswerRe: destroy session after sometime Pin
Kornfeld Eliyahu Peter4-May-14 10:24
professionalKornfeld Eliyahu Peter4-May-14 10:24 
GeneralRe: destroy session after sometime Pin
Jassim Rahma4-May-14 10:51
Jassim Rahma4-May-14 10:51 
AnswerRe: destroy session after sometime Pin
Kornfeld Eliyahu Peter4-May-14 10:58
professionalKornfeld Eliyahu Peter4-May-14 10:58 
GeneralRe: destroy session after sometime Pin
Jassim Rahma4-May-14 11:02
Jassim Rahma4-May-14 11:02 
AnswerRe: destroy session after sometime Pin
Kornfeld Eliyahu Peter4-May-14 11:04
professionalKornfeld Eliyahu Peter4-May-14 11:04 
GeneralRe: destroy session after sometime Pin
Jassim Rahma4-May-14 11:20
Jassim Rahma4-May-14 11:20 
AnswerRe: destroy session after sometime Pin
Kornfeld Eliyahu Peter4-May-14 11:21
professionalKornfeld Eliyahu Peter4-May-14 11:21 
GeneralRe: destroy session after sometime Pin
Jassim Rahma4-May-14 22:01
Jassim Rahma4-May-14 22:01 
AnswerRe: destroy session after sometime Pin
Kornfeld Eliyahu Peter4-May-14 22:08
professionalKornfeld Eliyahu Peter4-May-14 22:08 
GeneralRe: destroy session after sometime Pin
Jassim Rahma4-May-14 22:11
Jassim Rahma4-May-14 22:11 
AnswerRe: destroy session after sometime Pin
Kornfeld Eliyahu Peter4-May-14 22:17
professionalKornfeld Eliyahu Peter4-May-14 22:17 
GeneralRe: destroy session after sometime Pin
Jassim Rahma4-May-14 22:23
Jassim Rahma4-May-14 22:23 
AnswerRe: destroy session after sometime Pin
Kornfeld Eliyahu Peter4-May-14 22:27
professionalKornfeld Eliyahu Peter4-May-14 22:27 
AnswerRe: destroy session after sometime Pin
Eric 5716-Jun-14 9:08
Eric 5716-Jun-14 9:08 
QuestionUTC_TIMESTAMP to local date time Pin
Jassim Rahma3-May-14 4:01
Jassim Rahma3-May-14 4:01 
Questionhow to deal with bool? Pin
Jassim Rahma3-May-14 3:57
Jassim Rahma3-May-14 3:57 
AnswerRe: how to deal with bool? Pin
vbmike3-May-14 7:15
vbmike3-May-14 7:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.