-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Sander Smeenk,
On Thursday, July 28, 2005, you wrote:

> Quoting Sander Smeenk ([EMAIL PROTECTED]):

>> I'm running SquirrelMail 1.4.4, Debian package revision 6sarge1.
>> Courier IMAP 3.0.8 Debian package revision 4.

> I'm still having the same problem.

> I've downgraded squirrelmail to 1.4.4 deb-rev 5, to no avail.

> My own server is now running exactly the same setup as my server at
> work. Same squirrelmail, same apache, same courier same php4, yet my own
> refused me to log in, and the one at work works like a charm.

> What I do notice is that on the [EMAIL PROTECTED], there's all these sess_*
> files in /tmp, none of those appear on my own server.

This here is likely to be your issue... for some reason, your session
files aren't being created, and because they're not being created, we
cannot store important information about your session.

> I copied the php.ini from [EMAIL PROTECTED] to [EMAIL PROTECTED], restarted
> apache, nothing changed.

Okay, that's a start. Have you checked the php.ini file? Find
session.save_path make sure there is no ; in front, set it to, for
example, /tmp. Make sure apache (wwwdata ?) has write permissions to
that folder, restart apache again.

You might want to check your error logs as well.  If that doesn't
help, try editing the php.ini file again, and changing error_reporting
to E_ALL, and log_errors to on, and restart apache again, see if you
get any errors in the log files.

> Can someone provide me with a simple php script that starts a
> session, stores a value, and another one that retrieves this
> information?

<?php

session_start();

if (!empty($_SESSION['myvar'])) {
  echo 'My Var is : ' . $_SESSION['myvar'];
} else {
  echo 'My Var is not yet set';
}

$_SESSION['myvar'] = 'bob';

session_write_close();

?>

Save it as test.php, and open it once, then hit the refresh button on
your browser. The message at the top should change.

- --
Jonathan Angliss
<[EMAIL PROTECTED]>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)

iD8DBQFC6kG1K4PoFPj9H3MRAr5eAJ0Z6r8JxrzdlDGxElzRRd5rXCM7rwCguS1V
l2nn0p+FWKs6i3jg8BdhLg8=
=OJ+d
-----END PGP SIGNATURE-----



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
--
squirrelmail-users mailing list
Posting Guidelines: 
http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines
List Address: [email protected]
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to