/    Sign up×
Community /Pin to ProfileBookmark

session variables

hi, schiet einleitung in englisch immer, die spar ich mir heute mal.
can anyone understand the following problem.
if there is a main script for example index.php and in it there is a function called menu.
in the index script i do some calls and some includes.

include(“blablabla.php”);
session_start();

menu();

etc.

and now there is the function defined at the bottom of the script.

function menu($…){

in course of the function another script will be included that defines some session varibales and fill it.
now, in the main script another script should be included and work with the session variables that are generated
in this function but the included script in main function cant access the session variables or that not right he
knows the variables but there are no values in it.if i make a output of the variables in the function the values
are correctly set.

}

what wrong?

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@gruetztianauthorMay 12.2005 — oh no, all right, i see theres was a bug.i works, no problem.
×

Success!

Help @gruetztian spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...