Casper said:
Hi,
If you configure your messenger in such way that you use Session connection ID then you don't have to create a cookie explicitly. Standard sessionmanagement included with WebSpeed uses session connection id to generate a unique id for that session. If you use that then you can use SetSession and getSession functions to retrieve information regarding the session.
Let's say a session is started. As soon as you do SetSession('namevariable',value) a textfile is created with this value in it. You can retrieve this value with the GetSession('namevariable') function.
With this you can verify if the session is valid or not (return to login page). Any text can be put in the session file as long if it doesn't exceed 32K in total.
HTH,
Casper.
I've coded a simple block which verifies if the user has entered the userid and password. This is done so I can go program the remaining functionalities in my system. I will begin on the original problem later.
Now another problem, say you now after loggin in, you go to a page where there information to be filled like incident description, solution etc.
At the top of the screen there are 2 forms which should automatically fill the userid (no passwords ofcourse
) and the username (all from a database).
How to program the code? It's abit the same as filling thos comboboxes however I get stuck.
Here's the code:
<script language="SpeedScript">
Find customer where customer.numb = get-value("numb") NO-LOCK no-error.
IF available customer THEN do:
{&OUT} "<tr>" string(customer.numb).
END.
</script>
<td width="64">
<span style="background-color: rgb(255, 255, 0)">" UserID: </span></td>
<td width="148">" "<input type="text" name="T2" size="20"></td>
</tr>
<tr>
<td width="64">
<span style="background-color: rgb(255, 255, 0)">Username:</span></td>
<td width="148"> <input type="text" name="T3" size="20"></td>
</tr>
The names of the forms are T2 and T3 as shown above. and the form name numb is the field where in the customer ID was entered from the login page.
Any ideas?