protected void btn_confirmBooking_Click(object sender, EventArgs e)
        {
            if (queue)
            {
                //add reservation to queue
                DBconnection.addToQueue(user.Id, s.Id, type);
                Session["message"] = "Thank you. Your reservation will be booked as soon as a space becomes available. ";
            }
            //store details necessary for compling a reservation in r object (Reservation class)
            else if (!queue)
            {
                //add reservation to database
                DBconnection.reserveSession(reservation, type);


                //increment the number of reservations for particular session
                int updatedReservation = s.Reservations + 1;

                //update number of reservations for particular session
                DBconnection.updateSessionReservation(type, updatedReservation, reservation);

                Session["message"] = "Thank you for booking a session. You can check your booking details in your profile. We are looking forward to see you";
            }

            Response.Redirect("Message.aspx");
        }