The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Adding new field to session
Hi, I need to extend the vB sessions and add one field into it - is it possible? How to do it?
|
#2
|
||||
|
||||
What are you trying to achieve with this?
|
#3
|
||||
|
||||
To store temporary data between requests
e.g. step 1: show a form with some <select>s, whose content was generated using complex operations step 2: verify that the values from <select>s are valid. (e.g. only for things that user has access on) |
#4
|
|||
|
|||
Whats wrong with using a simple form? To "post" data from step 1 to step 2?
I'm pretty sure it does what you are asking unless I'm missing something... |
#5
|
||||
|
||||
Erm ... security issue? I dont want users to change it.
|
#6
|
|||
|
|||
You said yourself you a using a form in step 1...I don't see a massive security issue with submitting it to step 2 as well.
I mean I'm no sercurity expert but it seems what your doing is a little overkill. Unless the data your sending from step one to step two is extremely sensitive. |
#7
|
||||
|
||||
Erm, I probably explained it wrong.
The data are not sensitive, the problem is that if I write the data into HIDDEN fields, user can change it and without SLOW (that's the point,I wanna use sessions to avoid getting the data twice, because it's slow and it cannot be optimized) verification it'd be a security problem because user can manually choose fields that they dont have access to. |
#8
|
|||
|
|||
You can't change data in Hidden fields they are hidden... (the user has to check the HTML first to see they exist).
Unless you intercept the header requests and all that malarky. (Which is not something your average user can/would do) Data is sent when the user submits a form...unless the form has thousands of elements passing the data twice won't have a noticeable impact on the performance if it has any at all that is. |
#9
|
||||
|
||||
There are a few extension (e.g. for Firefox) that allows user to change the hidden fields, referrer and other header in friendly GUI
|
#10
|
||||
|
||||
Quote:
Adding a filed to tabel session is simple: 1) ALTER the table 2) To set it: PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|