Jump to content

how to get the language session


Recommended Posts

hey guys,

 

i wanna build in a simple PHP IF into a module with which i can differentiate the different language IDs:

 

for example

 

if($_GET["id_lang"] == "1") {
##my output##
}
esle {
##my other output##
}

 

That only works when the language Var is listed in the url (index.php?id_lang=1) But i think that the language id is transferred to a session. My question now is how i can read out the session with php in order to receive the determined language id

 

my idea for example:.: if(session(id_lang) == "1")....

 

anybody has an idea how to make this work

Link to comment
Share on other sites

×
×
  • Create New...