| Author |
Message |
ethana Hangin' Around

Joined: Jan 05, 2006 Posts: 32 Location: Phoenix, AZ
|
Posted:
Mon Feb 06, 2006 10:12 pm |
|
Hey there, question on sessios in nuke. Writing my own little shopping cart and wanted to use sessions to accomplish this. I see throughout the files that the only place that has "session_start" is in the following:
includes/sessions.php
modules/Forums/admin/index.php
modules/Private_Messages/index.php
update_patches_etc/sql/nuke.sql
update_patches_etc/upgrades/6.x/upgrade60-65.php
"session_start" needs to be stated before any other output. Is there a standard way to handling sessions in nuke that im not aware of? Any comments would be helpful. Thanks all. |
|
|
|
 |
evaders99 Former Moderator in Good Standing

Joined: Apr 30, 2004 Posts: 3221
|
Posted:
Mon Feb 06, 2006 10:44 pm |
|
session_start is a standard function in PHP
Read up on sessions at |
|
|
|
 |
ethana Hangin' Around

Joined: Jan 05, 2006 Posts: 32 Location: Phoenix, AZ
|
Posted:
Mon Feb 06, 2006 10:50 pm |
|
Yes, this i know, but it needs to be the first thing outputted. Writing it in my module wont work because im assuming that the framework is already outtputting data back to the client browser. If im mistaken then id be pleased to use it  |
|
|
|
 |
evaders99 Former Moderator in Good Standing

Joined: Apr 30, 2004 Posts: 3221
|
Posted:
Tue Feb 07, 2006 8:33 am |
|
I'm not sure what you mean. Nothing is outputted to the client until you explicitly do so.. either using include("header.php"); or echo |
|
|
|
 |
|
|
|
|