PHPSESID چیه ؟

lxl

Member
سلام . میخواستم بدونم بعضی از سایت ها میرم یه همچین چیزی یا مشابهش رو می بینم .

PHPSESSID=086ae954a1787cca074a180ea22fb5fc

البته هر بار این عوض میشه ؟ کسی میدونه چی هست و چی کار میکنه . توی فروم های phpBB هم یه همچین چیزی هست ولی منتها این شکلی

sid=086ae954a1787cca074a180ea22fb5fc

مرسی ... :?:
 

taher007

Member
کد:
What exactly is the use of PHPSESSID in a URL???

Jul 9th, 2004 13:28

Philip Olson, mhykhh d


Assuming you know what a session is (read the manual) the session id is 
what tells PHP who 'owns' the session data for that session id and that 
you are in fact that owner.  Typically people accept the session id as 
a cookie but this isn't always the case, not everyone excepts these 
cookies so the session id needs to be sent within the request 
somehow/somewhere so through the url (GET) is one method for this.  
PHPSESSID is the default session name, this can be changed, but that's 
not important here.

There are various PHP directives that come into play here, consider the 
following manual page:

  General SESSION information:
  -----------------------------------------------------------------
  http://www.php.net/ref.session

سلام...
تا اونجا که میدونم تقریبا کار کوکی رو انجام میده...
چون ممکنه بعضی از بازدیدکنندگان سایت cookie مرورگرشون رو غیرفعال کرده باشند...

کد:
When you are using sessions this is one of two ways session ids may be passed (the second being cookies). It is possible to force php to only use cookies to maintain session state, but that will result in your site working incorrectly for users without cookies enabled.

موفق باشید.
 

جدیدترین ارسال ها

بالا