[solved]Problem mit Session-Verwaltung via MySQL

Alles, was PHP betrifft, kann hier besprochen werden.

[solved]Problem mit Session-Verwaltung via MySQL

Postby xx_ShiNRa_xx » 20. March 2012 17:49

Hallo Forum
ich hab momentan en kleines Problem mit der Session-Verwaltung über MySQL
zu PHP-Version etc. kann ich leider nichts sagen, da mein ISP phpinfo() deaktiviert hat... :(

erstmal der Teil vom Code, wo ich denke, dass der dort der Fehler liegt:
Code: Select all
class session
{
   public function __construct()
   {
      unset($this);
      session_set_save_handler(array($this, '_open'), array($this, '_close'), array($this, '_read'), array($this, '_write'), array($this. '_destroy'), array($this, '_gc'));
      session_start();
      register_shutdown_function('session_write_close');
   }


& nun die Fehlerausgabe:
Code: Select all
Warning: session_set_save_handler() [function.session-set-save-handler]: Argument 1 is not a valid callback in /var/www/virtual/code4fun.hopto.org/htdocs/include/class/class.session.php on line 7

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/virtual/code4fun.hopto.org/htdocs/include/class/class.session.php:7) in /var/www/virtual/code4fun.hopto.org/htdocs/include/class/class.session.php on line 8

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/virtual/code4fun.hopto.org/htdocs/include/class/class.session.php:7) in /var/www/virtual/code4fun.hopto.org/htdocs/include/class/class.session.php on line 8

Schon mal Danke im voraus für eure Hilfe! ;)
Last edited by xx_ShiNRa_xx on 22. March 2012 17:44, edited 1 time in total.
xx_ShiNRa_xx
 
Posts: 2
Joined: 20. March 2012 17:39
Operating System: Windows XP

Re: Problem mit Session-Verwaltung via MySQL

Postby xx_ShiNRa_xx » 20. March 2012 18:11

So ich habe jetzt alles noch mal bei mir lokal laufen lassen ;)
hier habe ich:
XAMPP 1.7.4
PHP 5.3.5
MySQL 5.5.8

hier kam eine ganz andere Fehlerausgabe zu Tage :o
Code: Select all
Catchable fatal error: Object of class session could not be converted to string in E:\web\cms\include\class\class.session.php on line 7
xx_ShiNRa_xx
 
Posts: 2
Joined: 20. March 2012 17:39
Operating System: Windows XP


Return to PHP

Who is online

Users browsing this forum: No registered users and 7 guests