473,788 Members | 2,744 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

new to sessions

escuse me the keyboard in Tallin airport

i work on http://panbaltica.com/docman/action_popup.php

i have one session_start which causes 2 errors
i send headers not to cache the page then the session_start - it
should be elsewhere it is a test - anyway, i want to create the
sesseion and stop caching of the page

i had somethiing which worked but i cannot recreate it

since i am new to session vars any ideas anyone?

wbr
sonnich

Nov 14 '07 #1
5 1413
On Nov 14, 1:32 pm, jodleren <sonn...@hot.ee wrote:
escuse me the keyboard in Tallin airport

i work onhttp://panbaltica.com/docman/action_popup.ph p

i have one session_start which causes 2 errors
i send headers not to cache the page then the session_start - it
should be elsewhere it is a test - anyway, i want to create the
sesseion and stop caching of the page

i had somethiing which worked but i cannot recreate it

since i am new to session vars any ideas anyone?

wbr
sonnich
Aparently, you have a blank space/return in onew of the include files

try starting the session before the include files

hope it helps

Nov 14 '07 #2
jodleren <so*****@hot.ee writes:
i work on http://panbaltica.com/docman/action_popup.php
i have one session_start which causes 2 errors
i send headers not to cache the page then the session_start - it
should be elsewhere it is a test - anyway, i want to create the
sesseion and stop caching of the page
i had somethiing which worked but i can not recreate it
Okay, it looks like you have a blank line printing -- the
header info has to be the very first thing in the file. Be careful
that your <? to start php is at the very top of the file, not a few
lines down -- that often causes the 'output already started' error.

Best regards!

--
John
_______________ _______________ _______________ _______________ _______
John Murtari Software Workshop Inc.
jmurtari@follow ing domain 315.635-1968(x-211) "TheBook.Co m" (TM)
http://thebook.com/
Nov 14 '07 #3
On 14 Nov., 18:09, "igro...@gmail. com" <igro...@gmail. comwrote:
On Nov 14, 1:32 pm, jodleren <sonn...@hot.ee wrote:
i have one session_start which causes 2 errors
i send headers not to cache the page then the session_start - it
should be elsewhere it is a test - anyway, i want to create the
sesseion and stop caching of the page
i had somethiing which worked but i cannot recreate it
since i am new to session vars any ideas anyone?

try starting the session before the include files
That was it
hope it helps
Yep, thanks a lot.
This causes some problems for me, as my login is in an included file
(better overview), so I need a way to work that one around... heve
sleep on that one.

WBR
Sonnich
Nov 14 '07 #4
On Nov 15, 12:09 am, jodleren <sonn...@hot.ee wrote:
On 14 Nov., 18:09, "igro...@gmail. com" <igro...@gmail. comwrote:
On Nov 14, 1:32 pm, jodleren <sonn...@hot.ee wrote:
i have one session_start which causes 2 errors
i send headers not to cache the page then the session_start - it
should be elsewhere it is a test - anyway, i want to create the
sesseion and stop caching of the page
i had somethiing which worked but i cannot recreate it
since i am new to session vars any ideas anyone?
try starting the session before the include files

That was it
hope it helps

Yep, thanks a lot.
This causes some problems for me, as my login is in an included file
(better overview), so I need a way to work that one around... heve
sleep on that one.
Well I seems to have other problems - or just being new to sessions

when I have some pages, can I transfer the sesstion to another page?

say page1.php goes to page2.php ( <a href="page2.php ") ?

WBR
Sonnich
Nov 23 '07 #5
jodleren wrote:
On Nov 15, 12:09 am, jodleren <sonn...@hot.ee wrote:
>On 14 Nov., 18:09, "igro...@gmail. com" <igro...@gmail. comwrote:
>>On Nov 14, 1:32 pm, jodleren <sonn...@hot.ee wrote:
i have one session_start which causes 2 errors
i send headers not to cache the page then the session_start - it
should be elsewhere it is a test - anyway, i want to create the
sesseion and stop caching of the page
i had somethiing which worked but i cannot recreate it
since i am new to session vars any ideas anyone?
try starting the session before the include files
That was it
>>hope it helps
Yep, thanks a lot.
This causes some problems for me, as my login is in an included file
(better overview), so I need a way to work that one around... heve
sleep on that one.

Well I seems to have other problems - or just being new to sessions

when I have some pages, can I transfer the sesstion to another page?

say page1.php goes to page2.php ( <a href="page2.php ") ?

WBR
Sonnich
That's the whole purpose of sessions - to be able to carry information
across pages.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===

Nov 23 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2816
by: The Plankmeister | last post by:
Hi... I'm trying my hardest to understand fully how sessions work and how best to use them. However, all I can find is information that doesn't tell me anything other than that sessions store information between pages, which I knew already. I want to know HOW sessions work! If anybody has any good links to material that explains sessions fully, then please send those links this way! I'm particularly interested in the...
13
12053
by: jing_li | last post by:
Hi, you all, I am a newbee for php and I need your help. One of my coworker and I are both developing a webpage for our project using php. We have a copy of the same files in different location on the server (in our own accounts on the same machine). When I am testing both versions of our program using the same browser (IE on Windows or Konqueror on Linux) the session variables will mix up and only the latest selection or options will...
3
2481
by: Maxime Ducharme | last post by:
Hi group We have a problem with sessions in one of our sites. Sessions are used to store login info & some other infos (no objects are stored in sessions). We are using Windows 2000 Server (IIS 5.0) with ASP 3.0 (no .NET on this site). Sometime, data in session is emptied. I say "sometime"
3
3722
by: Will Woodhull | last post by:
Hi, I'm new here-- I've been reading the group for a couple of days. Nice group; I like the way n00b33 questions are handled. I've been using a Javascript routine in index.html to determine a visitor's browser's capabilities. The Javascript then calls main.php, passing back its findings with a GET string; main.php saves the data as a visitor's profile in $_SESSION elements. It then serves up home.html and any further pages requested...
2
2970
by: Steve Franks | last post by:
According to the docs you tell ASP.NET to use cookieless sessions by setting a value in the config.web file. However, what if I wanted to determine at run time whether or not I wanted to use cookieless sessions for a particular user, and if so, I'd instruct ASP.NET to turn on cookieless sessions for a particular user session. Is this possible? For example I want to use cookie based sessions by default for all users. But if a user has...
12
2295
by: D. Shane Fowlkes | last post by:
This is a repost (pasted below). Since my original post, I've double checked the system clock and set all IIS Session Timeout values to 10 minutes. Still ...the problem occurs. I've also installed Deep Metrix Live Stats 6.2 XPS just to make sure nothing really strange was going on was going on. Still....the sessions only increment...or should I say my counter in my asax file.... and never goes down. If it matters, this machine is...
6
3807
by: Daniel Walzenbach | last post by:
Hi, I have a web application which sometimes throws an “out of memory” exception. To get an idea what happens I traced some values using performance monitor and got the following values (for one day): \\FFDS24\ASP.NET Applications(_LM_W3SVC_1_Root_ATV2004)\Errors During Execution: 7 \\FFDS24\ASP.NET Apps v1.1.4322(_LM_W3SVC_1_Root_ATV2004)\Compilations
22
3184
by: magic_hat60622 | last post by:
Hi all. I've got an app that dumps a user id into a session after successful login. the login page is http://www.mydomain.com/login.php. If the user visits pages on my site without the www (i.e., http://mydomain.com/foo.php), the session works fine and login state is maintained. If he visits http://www.mydomain.com/foo.php, the app drops the logged-in state.
13
35983
Frinavale
by: Frinavale | last post by:
One of the most fundamental topics in web design is understanding how to pass information collected on one web page to another web page. There are many different ways you could do this: Cookies, Database... However, I'm going to cover how to use Sessions. Sessions are used to store information in order to use it during later page requests or in other web pages in a web application. By default Cookies are used to identify which session...
3
28323
Atli
by: Atli | last post by:
Introduction: Sessions are one of the simplest and more powerful tools in a web developers arsenal. This tool is invaluable in dynamic web page development and it is one of those things every developer needs to know how to use. This article explains the basics of PHP Sessions. Assumptions: Basic PHP knowledge is required (variables, arrays and such) HTML Forms. What are Sessions? Sessions are a way of storing data. When developing...
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10373
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10177
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10118
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9969
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8995
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7519
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
3
2897
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.