Re: Need Help - Session Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

try this

<?php
session_start( );
print_r($_SESSION);
print "Return value of session_id()
:<strong>".session_id()."</strong><br>";
print $_SESSION['log'];

$_SESSION['log' ] = '12345';

?>



it is working in IE








--- jayson cruz <mail_json@xxxxxxxxx> wrote:

> Hello PHP Gurus,
> 
> Session works fine in firefox but not working in IE
> Is it true that .htaccess has some cross browser
> issues?
> 
> Take a look at my session test script:
> http://4thishouse.com/session_test/session.php
> 
> Heres the inside of session.php
> <?
> session_start();
> print 'Return value of session_id():
> <strong>'.session_id().'</strong><br>';
> print 'Return value of  $_SESSION[\'v\']:
> <strong>'.$_SESSION['v'].'</strong><br>';
> print 'Set $_SESSION[\'v\'] = 12345'.'<br>';
> $_SESSION['v'] = '12345';
> ?>
> 
> On the first launch of the page, there should be no
> value for $_SESSION['v'], then at the last line of
> the
> script I have set the $_SESSION['v'] = '12345'.
> Refreshing the page the session['v'] should have a
> value which is 12345, and yes it works in firefox.
> but
> try it in IE, it always null, and always generates
> different session_id. Therefore session is not
> working
> in IE.
> 
> 
> Theres .htaccess same folder as session.php
> I dont know if this causing the problem.. and heres
> inside of .htaccess
> 
> php_value session.save_path
>
/home/httpd/vhosts/4thishouse.com/httpdocs/tmp_session
> 
> I have to change the session.save_path replacing
> /var/lib/php/session, because Its not writable and I
> cant restart the apache server, because theres
> several
> site that will get affected. So Id rather use
> .htaccess
> 
> 
> Anyone knows why the session is not working in IE?
> And
> what should do to fix this problem?
> 
> 
> Im really really thankful if this get solved. 
> 
> 
> 
> 
> Regards,
> Jayson
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


PHP Data object relational mapping generator
http://www.metastorage.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/php-objects/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:php-objects-digest@xxxxxxxxxxxxxxx 
    mailto:php-objects-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux