Session variables and cookies

Alejandro Baronetti's Avatar

Alejandro Baronetti

28 May, 2010 02:08 PM via web

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?

  1. 2 Posted by Alejandro Baronetti on 28 May, 2010 02:10 PM

    Alejandro Baronetti's Avatar

    EDIT: When i said "The problem is that the query returns 3 rows", I meant "The problem is that the query returns 10 rows"

Reply to this discussion

Internal reply

Formatting help or Preview

Attached Files

You can attach files up to 10MB

What is the opposite of bad?

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.