php - Session lost in sub domain url in apache server -
i have session lost problem in sub domain url (test.example.com) after login. same code working fine in (i.e example.com). tried session.cookie_domain same error exist. please in regards
i had same experience hundreds of times found problem. don't need worry if cookies enable or disable. have re-declare parts of scripts (variables-the data want display) in if else condition. redeclare same thing using !isset , else same variables mentioned twice in if else condition, if understand mean.e.g if (!isset etc){a+b} else {a+b}. call same variables on , over. , make sure start session above page , define session e.g session['id'] on page claim missing.. no need worry headers or white lines, has nothing it. i've tried million times. don't need bother using ajax etc. php can everything. cheerio.
Comments
Post a Comment