Session variables and cookies
Hi, im going to explain what im trying to do with the bot.
We want our clients to make querys to our SQL database through msn
messenger.
The user enters a name, and the bot's response is a list of
telephone numbers.
The problem is that the query returns 3 rows, and i onloy want to
show 5 of them (first five rows), then ask to the user if he wants
to see the next 5 results, and show them. I am able to show the
first 5 results, but i cant find a way to store the other 5
results. I've tried to put them into an array, and saving that
array in a session variable. I also tried with cookies. But it
seems the bot just dont work with cookies or session variables, it
just ignores them, as if they dont exist.
What can I do? Where can I save the results array to use them in
the next step, when the user confirms that he wants to see the next
5 results?
2 Posted by Alejandro Baronetti on 28 May, 2010 02:10 PM
EDIT: When i said "The problem is that the query returns 3 rows", I meant "The problem is that the query returns 10 rows"