Starting a session in MySQL

5 pts.
Tags:
MySQL
MySQL functions
MySQL query
how to start a session in my sql?

Software/Hardware used:
software

Answer Wiki

Thanks. We'll let you know when a new response is added.

Here the Q is not clear properly. More details r required. i.e. what os and what is the web and other related SW. If possible supply actual scenario, that helps to provide more correct answers.
Though I am trying to provide some information, that may help u. Session is related with any web application. Session basically allows to store some data between requests. That data is tied to an ID that gets passed between the browser and server in every request, using a cookie, in the URL or in GET/POST parameters. If I am not wrong (just guessing) u r asking for PHP sessions is files…. or Managing Users with PHP Sessions and MySQL is it ! !
There is also a mechanism called “mysql session save handler for php”.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Robert2010
    Is this what you are looking for... i.e." <?php // this starts the session session_start(); // this sets variables in the session $_SESSION['test']='testing'; print "Done"; ?> Let me know.
    465 pointsBadges:
    report
  • carlosdl
    "Session is related with any web application" A web session is just one of the many applications of the session concept. It is used in a variety of contexts that doesn't have anything to do with a web application. But you are probably right in your guess, however, that wouldn't be a MySql session, but a web session. The OP could be referring to a interactive database session to manipulate data. It that was the case, one can connect to the database executing the following command:
    mysql -u <user> <database name>
    Without more details we will be just guessing.
    69,065 pointsBadges:
    report
  • 9867212949
    [...] Starting a session in MySQL [...]
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following