Project

General

Profile

Bug(バグ) #1324

opMemcacheSessionStorageがsession_start() 複数呼出を許容してしまう

Added by Shinichi Urabe almost 9 years ago. Updated over 1 year ago.

Status:
Fixed(完了)
Priority:
Normal(通常)
Target version:
Start date:
2010-07-13
Due date:
% Done:

100%

3.6 で発生するか:
Yes
3.8 で発生するか:
Unknown (未調査)

Description

Ovarview

opMemcacheSessionStorage allows that it calls session_start() two or more times.

opMemcacheSessionStorageがsession_start() 複数呼出を許容してしまう

Causes

報告元の問題はOpenPNE3.4.x のみに発生しますが、根本的な原因は opMemcacheSessionStorage が複数のセッション開始を許容していること・セッションの自動開始のオプションを無視していることにあります。

Way to fix

I fixed because opMemcacheSessionStorage that it not calls session_start() two or more times.

Sources

Web API 使用時に opMemcacheSessionStorage でnotice が発生します。

session_start() を 複数回実行しないように修正しても、今度はセッションIDが空になってしまい、エラーが発生します。

symfony の sfCacheSessionStorage と比べて実装が異なっているのも気になります。

opMemcacheSessionStorage.jpg View (747 KB) Shinichi Urabe, 2010-07-16 10:38


Related issues

Related to OpenPNE 3 - Backport(バックポート) #1403: opMemcacheSessionStorageがsession_start() 複数呼出を許容してしまう Fixed(完了) 2010-07-13
Related to OpenPNE 3 - Backport(バックポート) #1473: opMemcacheSessionStorageがsession_start() 複数呼出を許容してしまう Fixed(完了) 2010-07-13

Associated revisions

Revision 481fe80b (diff)
Added by Shogo Kawahara almost 9 years ago

fixed opMemcacheSessionStorage, because it calls session_start() two or more times (fixes #1324)

History

#1 Updated by Shinichi Urabe almost 9 years ago

  • File opMemcacheSessionStorageバグ.png added

#2 Updated by Shinichi Urabe almost 9 years ago

  • File deleted (opMemcacheSessionStorageバグ.png)

#3 Updated by Shinichi Urabe almost 9 years ago

  • File deleted (opMemcacheSessionStorageバグ.png)

#4 Updated by Shinichi Urabe almost 9 years ago

  • File opMemcacheSessionStorageバグ.png added

#5 Updated by Shinichi Urabe almost 9 years ago

  • File deleted (opMemcacheSessionStorageバグ.png)

#6 Updated by Shinichi Urabe almost 9 years ago

  • File opMemcacheSessionStorageバグ.jpg added

#7 Updated by Shinichi Urabe almost 9 years ago

  • File deleted (opMemcacheSessionStorageバグ.jpg)

#9 Updated by Kousuke Ebihara almost 9 years ago

  • Target version changed from OpenPNE 3.6beta1 to OpenPNE 3.7.0

#10 Updated by Shogo Kawahara almost 9 years ago

  • Assignee set to Shogo Kawahara

#11 Updated by Shogo Kawahara almost 9 years ago

  • Subject changed from Web API 使用時に opMemcacheSessionStorage でnotice が発生する to opMemcacheSessionStorageがsession_start() 複数呼出を許容してしまう

#12 Updated by Shogo Kawahara almost 9 years ago

  • Status changed from New(新規) to Pending Review(レビュー待ち)
  • % Done changed from 0 to 50

更新履歴 481fe80b2739bd56dba7878da5a9f421788d6a16 で適用されました。

#13 Updated by Rimpei Ogawa almost 9 years ago

  • 3.6 で発生するか set to Yes

#14 Updated by Kousuke Ebihara almost 9 years ago

  • Status changed from Pending Review(レビュー待ち) to Pending Testing(テスト待ち)
  • % Done changed from 50 to 70

#15 Updated by Mutsumi Imamura over 7 years ago

  • Status changed from Pending Testing(テスト待ち) to Fixed(完了)
  • % Done changed from 70 to 100

#16 Updated by Chiharu Nakajima over 1 year ago

3.6対応済み( #1403 )
3.8発生せず

Also available in: Atom PDF