1
nyman
Extrange problem with session vars ...
  • 2005/3/8 11:02

  • nyman

  • Just popping in

  • Posts: 11

  • Since: 2004/1/9 1


Hi, I have a big problem with session vars:

I have a class:

class myClass
{
var $records;
function get()
{
$this->records = array();
...
Populate array
...
}
}


In index.php:

...

includes
...

if ( !isset( $_SESSION['myVar'] ) )
{
$_SESSION['myVar'] = new myClass();
echo "First Time, session var created !!";
}

$_SESSION['myVar']->get();

...

assign to template
and dysplay

...


Well, this works perfectly for few records ( <= 160 ) ... but when method returns more than aprox 170
records, $_SESSION['myVar'] DISAPPEARS and object is created again !!!!!

Uffff, I've read a lot and I have not get answer ...

I've tried globals=ON and OFF, changing max memory ...

Has any one the same problem ? any idea ??

It's really frustrating ...

Note: I use PHP4.2.1, I've tried this out XOOPS and it works perfectly with many records ... may it be some XOOPS session managing limitation ???

My php.ini:

[ Moved, so it wasn't the cause ... ]

2
nyman
Re: Extrange problem with session vars ...
  • 2005/3/8 12:11

  • nyman

  • Just popping in

  • Posts: 11

  • Since: 2004/1/9 1


OK, I've seen sess_data at xoops_session table is not able of holding more than 65535 bytes ...

I think this is the problem ...

So ... ¿ How can I avoid sess_data size limitation ??

Thanx.

3
nyman
Re: SOLVED Extrange problem with session vars ...
  • 2005/3/8 12:18

  • nyman

  • Just popping in

  • Posts: 11

  • Since: 2004/1/9 1


I have change sess_data at xoops_session table from text ( max 65535 ) to longblob and now I can manage big sessions.

Login

Who's Online

93 user(s) are online (53 user(s) are browsing Support Forums)


Members: 0


Guests: 93


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits