client登入後, 如何保持這個session的存在與否, 會是個關鍵
一個簡易的keep session方法
1) 檢查帳號/密碼是否正確
2) server產生一個random string, 透過cookie, 送給client
3) 設定idle timeout時間, 由server內部進行計時
4) client每次瀏覽網頁, 會送出這個random string, server檢查是否正確
5) 登出後, 或timeout後, server移除這個random string
注意,
由於透過cookies, 所以必須強制client打開cookie選項, 如何檢查是否打開
Solution 1)
1.1 server設定cookie of the random string後, 送給browser,
並要求做302 redirect到check cookie的頁面.
1.2 Redirect過來的頁面, 如果沒有帶cookie option, server回應"要求打開cookie"的頁面,
如果有帶cookie option, 並且正確, server再redirect browser到正確的頁面
安全考量
由於cookie是明文, 並沒有加密過, 除非透過ssl, 否則很容易被第三者得知
Tuesday, May 22, 2007
Saturday, May 19, 2007
My Wish List
To trace out what is next to buy.
ThinkPad x200 RJ2
-C2D P8700(2.5GHz) L2(3M)
-320G 5400rpm HD
-2G 1033Hz RAM
-2G Turbo memory
-Intel WiFi 5100
-webcam
-指紋辨識
NT.49900 at pchome (送2G RAM, 2.5" 320G 外接硬碟)
NT.46800 at 小高黑店
Palm Pre
Android phone
ice-berlin
Ray Ban太陽眼鏡
Blackberry 9500 by NT.10??? my review
2.5''/3.5'' SATA harddisk?
硬碟外接盒 w/ USB, Firewire400 and Firewire800
SK-3500 Super-S Combo $2999
MacPower 2.5吋 硬碟外接盒 - SK-2500 800+ $2100
3.5'' SATA 500G Hard Disk only USB
KHS Road Bike
Giant OCR2 NT.25000
Giant IGUANA NT.12800 it's a joke.
Apple iPhone Nt.2xK review
Apple Time capsule NT.17900
頸掛式立體聲藍牙耳機 skip
lego mindstorms
Apple Bluetooth Mighty Mouse by NT.1500
Apple Bluetooth aluminum keyboard by NT2800 review
Apple aluminum keyboard by NT.1700
moshi keyboard review
firewire 800 external HD
Powerbook FireWire?
Powerbook Speaker?
Powerbook HD?
DDR 333 1G RAM for iBook $33XX
DDR 333 1G RAM for PowerBook $33XX by $2540
Rimowa Classic Flight 二輪大型旅行箱 $21,960 my review
i501 PHS mobile phone $5000 immunity
隱形眼鏡 $3000
Tag Heuer 鏡框 $10,000
Rolex submariner $200,000
Chromebook (Used to install kali or boot from USB driver which Kali is installed.)
ThinkPad x200 RJ2
-C2D P8700(2.5GHz) L2(3M)
-320G 5400rpm HD
-2G 1033Hz RAM
-2G Turbo memory
-Intel WiFi 5100
-webcam
-指紋辨識
NT.49900 at pchome (送2G RAM, 2.5" 320G 外接硬碟)
NT.46800 at 小高黑店
Palm Pre
Android phone
ice-berlin
Ray Ban太陽眼鏡
2.5''/3.5'' SATA harddisk?
硬碟外接盒 w/ USB, Firewire400 and Firewire800
SK-3500 Super-S Combo $2999
MacPower 2.5吋 硬碟外接盒 - SK-2500 800+ $2100
Giant OCR2 NT.25000
Apple Time capsule NT.17900
lego mindstorms
moshi keyboard review
firewire 800 external HD
Powerbook Speaker?
Powerbook HD?
DDR 333 1G RAM for iBook $33XX
隱形眼鏡 $3000
Tag Heuer 鏡框 $10,000
Rolex submariner $200,000
Chromebook (Used to install kali or boot from USB driver which Kali is installed.)
Monday, May 07, 2007
交接注意事項
...只能說事出必有因...
1) Architecture design
系統架構講解
2) Testing Environment Setup and Procedure
如何測試
3) How to enhance
怎麼加新功能
基本上
目前認為有抓到這些重點
應該就夠了
1) Architecture design
系統架構講解
2) Testing Environment Setup and Procedure
如何測試
3) How to enhance
怎麼加新功能
基本上
目前認為有抓到這些重點
應該就夠了
Subscribe to:
Posts (Atom)