On Mon, 2010-02-01 at 11:37 +0100, Aurelie REYMUND wrote:
Hello,
I have the following problem with the Adobe SVG viewer:
I try to generate a SVG document using PHP. the following code is working
well under Firefox, as well as IE with ASV:
?php
header(Content-type: image/svg+xml);
From: Aurelie REYMUND aurely...@gmail.com
Sent: Monday, February 01, 2010 3:37 AM
To: php-general@lists.php.net
Subject: [PHP] session variables and SVG documents
Hello,
I have the following problem with the Adobe SVG viewer:
I try to generate a SVG document using PHP. the following code is
; 'Floyd Resler'
Cc: a...@dotcontent.net; php-general@lists.php.net
Subject: RE: [PHP] SESSION VARIABLES ACROSS DIFFERENT WINDOWS/TABS
Leon,
This is really just a function of the browser. When a session cookie is
created, if the browser is setup for a single instance, that's the session
cookie it'll
On Thu, 2009-08-20 at 15:16 +0200, Leon du Plessis wrote:
It is just strange that I have this condition now...maybe I missed it a
year ago ?
Having a different session start up for each window for tab would be a
major pain.
Why?
People must please try and understand what I mean by
Leon,
This is really just a function of the browser. When a session cookie is
created, if the browser is setup for a single instance, that's the session
cookie it'll use for *any* request to that domain. This functions differently
depending on what browser you're using.
For example:
I'm realy sorry for u, but the reason for no answers is ur concept.
may be some rules will help u and I recommend u to think to spend the time
to rewrite the whole code. Im shure u will solve the problem then:
first dont use the global arrays directly. pick the values u need and put
them in
On Fri, 2009-08-14 at 09:55 +0200, Ralph Deffke wrote:
user often leave
forms open for hours and then submit them
These users should be taken out and beaten over the head with their
keyboards!
Thanks,
Ash
http://www.ashleysheridan.co.uk
--
PHP General Mailing List (http://www.php.net/)
To
well thanks good they are far away then, but the problem is ur client, i
didnt find anybody giving me the permission to beat his customers
Ashley Sheridan a...@ashleysheridan.co.uk wrote in message
news:1250236989.2344.10.ca...@localhost...
On Fri, 2009-08-14 at 09:55 +0200, Ralph Deffke wrote:
On Fri, 2009-08-14 at 10:05 +0200, Ralph Deffke wrote:
well thanks good they are far away then, but the problem is ur client, i
didnt find anybody giving me the permission to beat his customers
Ashley Sheridan a...@ashleysheridan.co.uk wrote in message
-Original Message-
From: Allen McCabe [mailto:allenmcc...@gmail.com]
Sent: 14 August 2009 06:58
My ai with using unset($var) in update_order.php is to set the
SESSION
variable for an item to ' ' (empty) so that it would not show up on
the
order summary (because my
-Original Message-
From: Ford, Mike [mailto:m.f...@leedsmet.ac.uk]
Sent: 14 August 2009 11:45
Now, here is the update_order.php code in entirety:
[code]
?php
session_start();
foreach ($_SESSION as $var = $val) {
if ($val == 0) {
unset($_SESSION[$var]);
} elseif
-Original Message-
From: Allen McCabe [mailto:allenmcc...@gmail.com]
Sent: 14 August 2009 06:58
Here is some more complete code:
[code = order_process.php]
?php
session_start();
// POST ALL $_POST VALUES, CREATE AS VARIABLES IN SESSION
foreach($_POST as $k=$v) {
Thank you all for your responses.
Mike.
I like the ii option better, mostly because I already have most of that in
place (ie. order posts to process, and process has editable fields and
hidden fields with the remaining complimentary values).
Martin suggested I use the following code for my
On Fri, Aug 14, 2009 at 12:25 PM, Allen McCabe allenmcc...@gmail.comwrote:
Thank you all for your responses.
Mike.
I like the ii option better, mostly because I already have most of that in
place (ie. order posts to process, and process has editable fields and
hidden fields with the
Thanks all for your patience! I will work on this today and write back with
any further questions I can't figure out on my own. And if anyone has any
advice I will be checking my email regularly.
If you've already tried this with no luck, please ignore -- but you
might speed up the whole
Thanks everyone for your help, I finally got it working.
For those that were curious, my writeResultRow() function was not naming the
input fields properly, so the SESSION variables could not be updated
properly. I had to add an array item for each show, an id, then call the id
to name the inputs
I have the following code for order_update.php:
[code]
session_start();
extract($_POST);
foreach ($_POST as $var = $val) {
if ($val 0) {
$_SESSION[$var] = $val;
} else {
unset($var);
}
header(Location: order_process.php);
}
[/code]
This is not working, however, and it
Ben,
First of all, I thank you for your time and help.
My ai with using unset($var) in update_order.php is to set the SESSION
variable for an item to ' ' (empty) so that it would not show up on the
order summary (because my writeResultRow() function will only write a row if
that variable is
On Wed, Jul 22, 2009 at 1:19 PM, Dare Williamsdarrenwi...@yahoo.com wrote:
Dear Forums,
Kindly advice me professionally because, am getting more confused on what to
do about my application that needed to be online very soon.
The fear is about Session and Authentication.
Here are my
Dear Dare,
I would recommend you to get the free copy of *chapter 10: Security from
Zend Certification Study guide* by Ben Ramsey Davey Shafik at
www.zceguide.com
shorter tips:
1. You can apply session_regenerate_id() to prevent *session riding*
or *session
fixation*
2. You can keep
Hello
For the authentication you can do a form, it will pass the login
informations to some class who do the sql validation and put in session
the informations of user, but not the password, i prefer put in session
because when he close the browser the session will down
for 2 ,
On the first
Thanks, Tom - -
On May 8, 2009, at 12:37 PM, Tom Worster wrote:
On 5/8/09 11:09 AM, phphelp -- kbk phph...@comcast.net wrote:
Just something I'm curious about: When I run PHP on my development
box (W2K), I just get one session file per connection which gets
deleted (usually) after the
On 5/8/09 11:09 AM, phphelp -- kbk phph...@comcast.net wrote:
Just something I'm curious about: When I run PHP on my development
box (W2K), I just get one session file per connection which gets
deleted (usually) after the session expires.
When I look at the session files on the client
At 2:39 PM -0700 3/27/09, Mary Anderson wrote:
Hi all,
I use session variables to store values from one page to another
on my website.
Alas, sometimes, but not always, the values persist from one
invocation of the script to another!
Just how, exactly, do I make them go away when a
On 3/27/09 5:39 PM, Mary Anderson maryf...@demog.berkeley.edu wrote:
Hi all,
I use session variables to store values from one page to another on
my website.
Alas, sometimes, but not always, the values persist from one
invocation of the script to another!
Just how, exactly, do I
On Fri, Mar 27, 2009 at 02:39:22PM -0700, Mary Anderson wrote:
Hi all,
I use session variables to store values from one page to another on
my website.
Alas, sometimes, but not always, the values persist from one
invocation of the script to another!
Just how, exactly, do I make them
2009/2/7 Paul M Foster pa...@quillandmouse.com:
I'm not too clear on HTTP headers, cookies, and such. So here are
questions related to that. Let's say I generate a random number that I
want the user to enter in a form. When I generate the number, I store it
in a session variable ($_SESSION).
Yeah i guess the cookie doesn't need to be stored on the server since it's
in the header anyway.
Thanks for clearing that up.
Tim-Hinnerk Heuer
http://www.ihostnz.com
Charles M. Schulz - I love mankind; it's people I can't stand.
2009/2/7 Stuart stut...@gmail.com
2009/2/7 Paul M Foster
A Session is stored on the user browser in a session ( in memory
cookie) and on the server as a file. The session mgmt tools will read
the file as needed.
Bastien
Sent from my iPod
On Feb 7, 2009, at 1:58, Paul M Foster pa...@quillandmouse.com wrote:
I'm not too clear on HTTP headers,
The session data is stored on the server. In the user's browser, only a
session cookie is stored, usually a random session id string. I could never
retrieve the session variables with any browser tools, always only with PHP
by echoing them out or something. Also, a cookie is simply a text file
You can set it where you are attempting to, but you need to have the
sesion_start(); at the top of the file
Bastien
Sent from my iPod
On Jan 30, 2009, at 17:20, Terion Miller webdev.ter...@gmail.com
wrote:
Think I'm setting this in the wrong place...someone help ...where do
I set
the
Are you perhaps storing the session data in a DB?
If the field type is, say, text, and you put something large in $_SESSION,
you'll have truncated data, the session manager can't unserialize it, and you
will have a silent failure when they try to do their next task -- They get
logged out
c...@l-i-e.com wrote:
Are you perhaps storing the session data in a DB?
No its using the file system
If the field type is, say, text, and you put something large in $_SESSION,
you'll have truncated data, the session manager can't unserialize it, and you
will have a silent failure when
further to my last email,
the bit of code that checks if the person is logged in looks something
like this:
if ( isset ( $_SESSION['loggedin'] ) ) {
//check some other session variables
} else {
//log reason for logging the user out
//redirect to login page
}
The variable,
2009/1/20 clive clive_li...@immigrationunit.com
further to my last email,
the bit of code that checks if the person is logged in looks something like
this:
if ( isset ( $_SESSION['loggedin'] ) ) {
//check some other session variables
} else {
//log reason for logging the user
Frank Stanovcak wrote:
I'm trying to make sure that my sessions are timed out by my server.
I'm running it on winxp, and my php.ini contains the following
session.gc_probability = 1
session.gc_divisor = 1
; After this number of seconds, stored data will be seen as 'garbage' and
;
Shawn McKenzie nos...@mckenzies.net wrote in message
news:f8.ef.24097.e510d...@pb1.pair.com...
Frank Stanovcak wrote:
I'm trying to make sure that my sessions are timed out by my server.
I'm running it on winxp, and my php.ini contains the following
session.gc_probability = 1
Frank Stanovcak wrote:
Shawn McKenzie nos...@mckenzies.net wrote in message
news:f8.ef.24097.e510d...@pb1.pair.com...
Frank Stanovcak wrote:
I'm trying to make sure that my sessions are timed out by my server.
I'm running it on winxp, and my php.ini contains the following
Nathan Rixham nrix...@gmail.com wrote in message
news:496d03d3.2060...@gmail.com...
Frank Stanovcak wrote:
Shawn McKenzie nos...@mckenzies.net wrote in message
news:f8.ef.24097.e510d...@pb1.pair.com...
Frank Stanovcak wrote:
I'm trying to make sure that my sessions are timed out by my
Frank Stanovcak wrote:
Nathan Rixham nrix...@gmail.com wrote in message
news:496d03d3.2060...@gmail.com...
Frank Stanovcak wrote:
Shawn McKenzie nos...@mckenzies.net wrote in message
news:f8.ef.24097.e510d...@pb1.pair.com...
Frank Stanovcak wrote:
I'm trying to make sure that my sessions
Shawn McKenzie nos...@mckenzies.net wrote in message
news:e3.00.25553.8560d...@pb1.pair.com...
Frank Stanovcak wrote:
Nathan Rixham nrix...@gmail.com wrote in message
news:496d03d3.2060...@gmail.com...
Frank Stanovcak wrote:
Shawn McKenzie nos...@mckenzies.net wrote in message
So from everything I've read there is no real way to assure a session
timeout with out timestamping it myself and dealing with it in code by doing
a time compare.
bummer.
Frank Stanovcak blindspot...@comcast.net wrote in message
news:57.31.25553.de80d...@pb1.pair.com...
Shawn McKenzie
Frank Stanovcak wrote:
So from everything I've read there is no real way to assure a session
timeout with out timestamping it myself and dealing with it in code by
doing a time compare.
bummer.
you're probably storing the session in a session cookie (which is
default) so
On Tue, Jan 13, 2009 at 5:08 PM, Nathan Rixham nrix...@gmail.com wrote:
Frank Stanovcak wrote:
So from everything I've read there is no real way to assure a session
timeout with out timestamping it myself and dealing with it in code by doing
a time compare.
bummer.
you're probably storing
On Sat, Oct 11, 2008 at 7:49 PM, Ron Piggott [EMAIL PROTECTED] wrote:
I am programming a blog.
index.php sets up the layout for the web page. This includes the
heading, left hand and bottom menus.
The content is loaded by the command:
include($filename);
the $_SESSION variables aren't
This is one of the first commands given.
I am using modrewrites to call the blog entries.
blog.php is responsible for displaying both the table of contents and
the blog entries. When the table of contents is called
(http://www.rons-home.net/page/blog/ ) the session variables are
present.
I did some more testing. The URL is the problem.
Logins are from
On Sat, 2008-10-11 at 19:59 -0400, Daniel Brown wrote:
On Sat, Oct 11, 2008 at 7:49 PM, Ron Piggott [EMAIL PROTECTED] wrote:
I am programming a blog.
index.php sets up the layout for the web page. This includes the
Oops
Logins are from
http://www.rons-home.net/page/login-greeting/
Blog postings are from
http://www.rons-home.net/blog/28/
with the word 'page' gone the session variable doesn't acknowledge the
login.
Ron
On Sat, 2008-10-11 at 21:12 -0400, Ron Piggott wrote:
I did some more testing. The
register_globals has been deprecated as of PHP6.
So writing PHP code to work without global registering not just
prevents variable poisoning, it also increases the life span of your
scripts.
I still wonder if using
php_flag register_globals off
in .htaccess might affect servers running PHP4 and
Hi gang:
While this may be trivial to many of you, I post this for the others.
In my last problem, which was caused by register globals being ON, I
wondered how I could fix this.
In my specific case, the client had Register Globals ON and his
host objected to turning if OFF saying that
That's lazyness, reply all does that by itself.
Luke Slater
Defiance.bounceme.net/blog/
On 2 Oct 2008, at 16:15, Daniel Brown [EMAIL PROTECTED] wrote:
On Thu, Oct 2, 2008 at 11:11 AM, Jay Moore [EMAIL PROTECTED]
wrote:
Now, someone show me where that is documented?
On 01 October 2008 21:24, tedd advised:
At 2:38 PM -0500 10/1/08, Afan Pasalic wrote:
main reason - if you sort by first or last name you will lose
index.
this way is index always linked to first/last name.
Your point is well taken, but I'm not sorting this.
True, the arrays have a
Hi gang:
As strange as it may seem, but when session variables are passed to
another page (i.e., used) you cannot extract ALL OF THEM using a loop
when the variable names you are using are the same as the SESSION
index's names.
In other words, you cannot do this:
for ($i = 0; $i
On Thu, Oct 2, 2008 at 11:02 AM, tedd [EMAIL PROTECTED] wrote:
As strange as it may seem, but when session variables are passed to another
page (i.e., used) you cannot extract ALL OF THEM using a loop when the
variable names you are using are the same as the SESSION index's names.
[snip!]
tedd wrote:
Hi gang:
As strange as it may seem, but when session variables are passed to
another page (i.e., used) you cannot extract ALL OF THEM using a loop
when the variable names you are using are the same as the SESSION
index's names.
In other words, you cannot do this:
for ($i = 0;
Now, someone show me where that is documented?
http://us3.php.net/register_globals
offtopic rant
Also, for the love of glaven, people. If you're going to post to the
list, you don't have to include the original sender as well. There's a
pretty good chance if they originally posted to the
On Thu, Oct 2, 2008 at 11:02 AM, tedd [EMAIL PROTECTED] wrote:
Hi gang:
As strange as it may seem, but when session variables are passed to another
page (i.e., used) you cannot extract ALL OF THEM using a loop when the
variable names you are using are the same as the SESSION index's names.
On Thu, Oct 2, 2008 at 11:11 AM, Jay Moore [EMAIL PROTECTED] wrote:
Now, someone show me where that is documented?
http://us3.php.net/register_globals
offtopic rant
Also, for the love of glaven, people. If you're going to post to the list,
you don't have to include the original sender as
On 2 Oct 2008, at 16:11, Jay Moore wrote:
Now, someone show me where that is documented?
http://us3.php.net/register_globals
offtopic rant
Also, for the love of glaven, people. If you're going to post to
the list, you don't have to include the original sender as well.
There's a pretty
Ford, Mike wrote:
On 01 October 2008 21:24, tedd advised:
At 2:38 PM -0500 10/1/08, Afan Pasalic wrote:
main reason - if you sort by first or last name you will lose
index.
this way is index always linked to first/last name.
Your point is well taken, but I'm not sorting this.
True, the
Daniel Brown wrote:
On Thu, Oct 2, 2008 at 11:11 AM, Jay Moore [EMAIL PROTECTED] wrote:
Now, someone show me where that is documented?
http://us3.php.net/register_globals
offtopic rant
Also, for the love of glaven, people. If you're going to post to the list,
you don't have to include the
Stut wrote:
It's also worth noting that since subscriptions is not required to post
to these lists there's no guarantee that the OP will get your reply if
you don't include their address. IOW you're asking us to deprive a
number of developers seeking assistance of our replies because you can't
Jay Moore wrote:
Stut wrote:
It's also worth noting that since subscriptions is not required to
post to these lists there's no guarantee that the OP will get your
reply if you don't include their address. IOW you're asking us to
deprive a number of developers seeking assistance of our replies
On Thu, Oct 2, 2008 at 12:12 PM, Jay Moore [EMAIL PROTECTED] wrote:
Why is it that it's not ok to top post, but it's perfectly fine to not
subscribe to the list? It's extremely rude and arrogant to post to the list
and expect people to respond to you personally. In fact, people get all up
On 2 Oct 2008, at 17:12, Jay Moore wrote:
Stut wrote:
It's also worth noting that since subscriptions is not required to
post to these lists there's no guarantee that the OP will get your
reply if you don't include their address. IOW you're asking us to
deprive a number of developers
At 11:13 AM -0400 10/2/08, Andrew Ballard wrote:
As several of us have suggested now, it's got to be register_globals.
To all:
Yes, register_globals was ON as reported by php-info and that was the problem.
I also have other servers where register_globals is OFF and I don't
have the problem
On Thu, Oct 2, 2008 at 12:30 PM, tedd [EMAIL PROTECTED] wrote:
I also have other servers where register_globals is OFF and I don't have the
problem -- so indeed, that WAS the problem.
It's INI_PERDIR, by the way, so you can set it with a local
php.ini - or, if httpd.conf permits it, you
Daniel Brown wrote:
And fear not, Sergeant Sperling register_globals is deprecated
and is removed as of PHP6.
so long, farewell, bye bye
--
Jim Lucas
Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them.
Twelfth Night, Act
On Thu, Oct 2, 2008 at 12:57 PM, Jim Lucas [EMAIL PROTECTED] wrote:
so long, farewell, bye bye
If you say so. Do you realize how many websites are going to
break now? ;-P
https://www.example.com/secure/shop.php?page=creditcardinfo.php
?php
include($page);
?
--
/Daniel P. Brown
More
On Oct 2, 2008, at 1:01 PM, Daniel Brown wrote:
On Thu, Oct 2, 2008 at 12:57 PM, Jim Lucas [EMAIL PROTECTED] wrote:
so long, farewell, bye bye
If you say so. Do you realize how many websites are going to
break now? ;-P
That's probably a good thing:
https://www.example.com/secure/shop.php?page=/etc/passwd
?php
include($page);
?
:-)
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Daniel Brown wrote:
On Thu, Oct 2, 2008 at 12:57 PM, Jim Lucas [EMAIL PROTECTED] wrote:
At 11:12 AM -0500 10/2/08, Jay Moore wrote:
I don't reply-all. If I have an answer that will help someone, I
post it to the list. If they can't be bothered to subscribe to see
my reply, tough cookies. The question went to the list; the
response went to the list. (I feel just fine about
On Thu, Oct 2, 2008 at 1:14 PM, Micah Gersten [EMAIL PROTECTED] wrote:
That's probably a good thing:
https://www.example.com/secure/shop.php?page=/etc/passwd
Yeah, it was a joke.
--
/Daniel P. Brown
More full-root dedicated server packages:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel
At 12:50 PM -0400 10/2/08, Daniel Brown wrote:
On Thu, Oct 2, 2008 at 12:30 PM, tedd [EMAIL PROTECTED] wrote:
I also have other servers where register_globals is OFF and I
don't have the
problem -- so indeed, that WAS the problem.
It's INI_PERDIR, by the way, so you can set it with
As was mine.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Daniel Brown wrote:
On Thu, Oct 2, 2008 at 1:14 PM, Micah Gersten [EMAIL PROTECTED] wrote:
That's probably a good thing:
https://www.example.com/secure/shop.php?page=/etc/passwd
Daniel Brown wrote:
On Thu, Oct 2, 2008 at 12:57 PM, Jim Lucas [EMAIL PROTECTED] wrote:
so long, farewell, bye bye
If you say so. Do you realize how many websites are going to
break now? ;-P
https://www.example.com/secure/shop.php?page=creditcardinfo.php
?php
include($page);
Stut wrote:
I see your confusion. This is a *mailing list* with a newsgroup gateway.
If you're using it as a newsgroup then you have to accept that you're
not using it the way it was meant to be used, and that almost always has
side-effects.
That being the case, I apologize for my
On Thu, Oct 2, 2008 at 1:53 PM, Jim Lucas [EMAIL PROTECTED] wrote:
But, you must admit that your example above shows a very good reason that it
SHOULD break!
Once again, it was a joke. I thought everyone would've realized
that immediately.
--
/Daniel P. Brown
More full-root dedicated
tedd wrote:
Hi gang:
Apparently, there's something going on here that I don't understand --
this happens far too often these days.
Here's a print_r($_SESSION); of the session arrays I'm using:
[user_id] = Array
(
[0] = 6156
[1] = 7030
[2]
tedd wrote:
Hi gang:
Apparently, there's something going on here that I don't understand --
this happens far too often these days.
Here's a print_r($_SESSION); of the session arrays I'm using:
[user_id] = Array
(
[0] = 6156
[1] = 7030
[2]
At 2:38 PM -0500 10/1/08, Afan Pasalic wrote:
main reason - if you sort by first or last name you will lose index.
this way is index always linked to first/last name.
Your point is well taken, but I'm not sorting this.
True, the arrays have a common index, which is 0, 1, 2, 3 ...
At 2:43 PM -0500 10/1/08, Afan Pasalic wrote:
just tested. works fine
$_SESSION = array(
'6156' = array(
'first_name'= 'Diane',
'last_name' = 'Cable'),
'7030' = array(
'first_name'=
tedd wrote:
At 2:43 PM -0500 10/1/08, Afan Pasalic wrote:
just tested. works fine
$_SESSION = array(
'6156' = array(
'first_name'= 'Diane',
'last_name' = 'Cable'),
'7030' = array(
tedd wrote:
At 2:43 PM -0500 10/1/08, Afan Pasalic wrote:
just tested. works fine
$_SESSION = array(
'6156' = array(
'first_name'= 'Diane',
'last_name' = 'Cable'),
'7030' = array(
On Wednesday 01 October 2008, tedd [EMAIL PROTECTED] sent a missive
stating:
At 2:43 PM -0500 10/1/08, Afan Pasalic wrote:
just tested. works fine
$_SESSION = array(
'6156' = array(
'first_name'= 'Diane',
tedd wrote:
Hi gang:
Apparently, there's something going on here that I don't understand --
this happens far too often these days.
Here's a print_r($_SESSION); of the session arrays I'm using:
[user_id] = Array
(
[0] = 6156
[1] = 7030
[2] =
At 12:55 AM +0100 8/20/08, Ford, Mike wrote:
Content-Type: text/plain
Content-length: 1998
Been on holiday, so coming to this party a bit late, but
On Sat 16/08/2008 15:06 Stut wrote:
On 16 Aug 2008, at 14:46, tedd wrote:
At 2:11 PM +0100 8/16/08, Stut wrote:
Ahh, I see the problem.
Been on holiday, so coming to this party a bit late, but
On Sat 16/08/2008 15:06 Stut wrote:
On 16 Aug 2008, at 14:46, tedd wrote:
At 2:11 PM +0100 8/16/08, Stut wrote:
Ahh, I see the problem. You've never been able to use numbers as
keys at the root level of the $_SESSION array.
At 8:02 PM -0700 8/15/08, VamVan wrote:
Tedd,
I think according to PHP manual. Session_start() must be the first
line in the code. Dont worry it will remember your session until you
close the browser and also it wont duplicate it.
VamVan:
Yes, I thought that as well and practiced it for
On 16 Aug 2008, at 12:36, tedd wrote:
At 8:02 PM -0700 8/15/08, VamVan wrote:
Tedd,
I think according to PHP manual. Session_start() must be the first
line in the code. Dont worry it will remember your session until
you close the browser and also it wont duplicate it.
VamVan:
Yes, I
session_start() doesn't have to be the first line in the code, but it
does have to occur before ANY content sent to the browser, and this
includes any headers as well. Generally speaking, it does no harm to
have it as the first line of your PHP code
Ash
www.ashleysheridan.co.uk
Hello Tedd,
it seems to be a naming problem. You may not use a numeric value for a
variable name to store in $_SESSION.
By assigning it to $_SESSION, you get a
Notice: Unknown: Skipping numeric key 1 in Unknown on line 0
and in your second script a
Notice: Undefined offset: 1 in
At 12:40 PM +0100 8/16/08, Stut wrote:
On 16 Aug 2008, at 12:36, tedd wrote:
The problem here is can I use a variable within a $_SESSION[] declaration?
Like so:
$_SESSION[$var]
I haven't really been following this thread but using a variable
like that is perfectly valid. $_SESSION is no
At 2:09 PM +0200 8/16/08, Sabine Richter wrote:
Hello Tedd,
it seems to be a naming problem. You may not use a numeric value for
a variable name to store in $_SESSION.
By assigning it to $_SESSION, you get a
Notice: Unknown: Skipping numeric key 1 in Unknown on line 0
and in your second
Hello Tedd,
tedd schrieb:
At 2:09 PM +0200 8/16/08, Sabine Richter wrote:
Hello Tedd,
it seems to be a naming problem. You may not use a numeric value for a
variable name to store in $_SESSION.
By assigning it to $_SESSION, you get a
Notice: Unknown: Skipping numeric key 1 in Unknown on
On 16 Aug 2008, at 13:20, tedd wrote:
At 12:40 PM +0100 8/16/08, Stut wrote:
On 16 Aug 2008, at 12:36, tedd wrote:
The problem here is can I use a variable within a $_SESSION[]
declaration?
Like so:
$_SESSION[$var]
I haven't really been following this thread but using a variable
like
At 2:11 PM +0100 8/16/08, Stut wrote:
Ahh, I see the problem. You've never been able to use numbers as
keys at the root level of the $_SESSION array. It's not a bug, it's
just the way it is. I've just checked the documentation and can't
find an obvious reference to this limitation which is
At 2:45 PM +0200 8/16/08, Sabine Richter wrote:
Yes, our mails overlaped each other (Do you say that in english? My
english is not the best.)
Sabine:
Your English is fine -- much better than my de for certain.
By the way: I tried your initial code and I had no problem with the
variable
On 16 Aug 2008, at 14:46, tedd wrote:
At 2:11 PM +0100 8/16/08, Stut wrote:
Ahh, I see the problem. You've never been able to use numbers as
keys at the root level of the $_SESSION array. It's not a bug, it's
just the way it is. I've just checked the documentation and can't
find an obvious
On Sat, Aug 16, 2008 at 10:06 AM, Stut [EMAIL PROTECTED] wrote:
I wish I understood the reason why it's like this but I've never looked into
the session extension in that level of detail, but I doubt such a limitation
would exist if there was not a very good reason for it. But again, I don't
101 - 200 of 1598 matches
Mail list logo