cppcms-users Mailing List for CppCMS C++ Web Framework (Page 52)
Brought to you by:
artyom-beilis
You can subscribe to this list here.
| 2009 |
Jan
|
Feb
(22) |
Mar
|
Apr
(3) |
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
(15) |
Nov
(16) |
Dec
(13) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2010 |
Jan
(4) |
Feb
|
Mar
(8) |
Apr
(8) |
May
(8) |
Jun
(36) |
Jul
(63) |
Aug
(126) |
Sep
(47) |
Oct
(66) |
Nov
(46) |
Dec
(42) |
| 2011 |
Jan
(87) |
Feb
(24) |
Mar
(54) |
Apr
(21) |
May
(22) |
Jun
(18) |
Jul
(22) |
Aug
(101) |
Sep
(57) |
Oct
(33) |
Nov
(34) |
Dec
(66) |
| 2012 |
Jan
(64) |
Feb
(76) |
Mar
(73) |
Apr
(105) |
May
(93) |
Jun
(83) |
Jul
(84) |
Aug
(88) |
Sep
(57) |
Oct
(59) |
Nov
(35) |
Dec
(49) |
| 2013 |
Jan
(67) |
Feb
(17) |
Mar
(49) |
Apr
(64) |
May
(87) |
Jun
(64) |
Jul
(93) |
Aug
(23) |
Sep
(15) |
Oct
(16) |
Nov
(62) |
Dec
(73) |
| 2014 |
Jan
(5) |
Feb
(23) |
Mar
(21) |
Apr
(11) |
May
(1) |
Jun
(19) |
Jul
(27) |
Aug
(16) |
Sep
(5) |
Oct
(37) |
Nov
(12) |
Dec
(9) |
| 2015 |
Jan
(7) |
Feb
(7) |
Mar
(44) |
Apr
(28) |
May
(5) |
Jun
(12) |
Jul
(8) |
Aug
|
Sep
(39) |
Oct
(34) |
Nov
(30) |
Dec
(34) |
| 2016 |
Jan
(66) |
Feb
(23) |
Mar
(33) |
Apr
(15) |
May
(11) |
Jun
(15) |
Jul
(26) |
Aug
(4) |
Sep
(1) |
Oct
(30) |
Nov
(10) |
Dec
|
| 2017 |
Jan
(52) |
Feb
(9) |
Mar
(24) |
Apr
(16) |
May
(9) |
Jun
(12) |
Jul
(33) |
Aug
(8) |
Sep
|
Oct
(1) |
Nov
(2) |
Dec
(6) |
| 2018 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
(14) |
Jun
(1) |
Jul
(9) |
Aug
(1) |
Sep
(13) |
Oct
(8) |
Nov
(2) |
Dec
(2) |
| 2019 |
Jan
(1) |
Feb
(1) |
Mar
(3) |
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(9) |
Jul
(6) |
Aug
(25) |
Sep
(10) |
Oct
(10) |
Nov
(6) |
Dec
|
| 2021 |
Jan
|
Feb
|
Mar
(7) |
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(9) |
Oct
(1) |
Nov
|
Dec
|
| 2022 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
|
From: le ba <hma...@gm...> - 2013-06-29 14:42:15
|
Hi, I have used MinGW TDM-GCC Compiler Suite for Windows 4.7.1 Series in WP3 and I didn't have the problem like you have. It is very important to configure all path for all reuired library before build process. You can also deactivate the build of some feature which you will not need during the test(see CMakeLists.txt) . I have Qcreator which I use with Cmake with MinGW to build cppcms framework. Regards. 2013/6/28 Vizcayno <viz...@gm...> > Hello, > > Please read carefully all the indications about installation of cppCms in > the corresponding links for Windows. It is important that you can download > all the necessary software indicated as requisites. > > > > ==>ZLIB: Download zlib128-dll.zip (compiled DLL) from http://zlib.net, > unzip and follow the indications contained in file USAGE.txt inside .zip > file. > > > > ==>PCRE: Download pcre-8.33.zip from www.pcre.org because the precompiled > version offered in this site corresponds to version 7. The zip file > contains source code so, you need to build the .lib and .dll files. > Assuming you downloaded to c:\pcre, follow next steps in the DOS cmd: > > - Cd c:\pcre > > - Unzip file > > - set path=%path%;{directory of cmake}\bin > > - cd C:\pcre\pcre-8.33 > > - md build > > - cd build > > - run cmake-gui, then fill next data on the screen: > > Where is the source code: c:/pcre/pcre-8.33 > > Where to build the binaries: c:/pcre/pcre-8.33/build > > - Then press configure button and wait some seconds > > - Change some parameters: > > BUILD_SHARED_LIBS -> X > > PCRE_SUPPORT_UTF -> X > > CMAKE_BUILD_TYPE -> Release (Create line if necessary) > > CMAKE_INSTALL_PREFIX -> C:/ pcre > > CMAKE_C_FLAGS_RELEASE -> /MD /EHsc /Ox /Ob2 /Oi /D NDEBUG > > - Then, press generate button selecting the compiler you have (I assume > VC). After that, a .sln file is generated, which you can use to build > the .dll files. If you have problems with .h files, it may be caused by the > inclusion of the word .generic appended in the name, erase those characters > from filename. > > - Once you have the .dll, you can test executing pcre_test.bat (in build > folder). > > > > > > ==>OPENSSL: Download Openssl from > http://slproweb.com/products/Win32OpenSSL.html. The object to download is > Win32 OpenSSL v1.0.1e It is necessary to have installed the Visual C++ > 2008 redistributable. > > > > That is all wil the dependent object. Now we go to cppCms build. > > > > Invoke the command prompt of VS.. with administrative privileges. > > > > > > > > ==>CPPCMS. Once you have all the dependencies resolved and you know where > in your disk are the .lib, -h and .dll files created of PCRE, ZLIB an > OPENSSL, you can build the cppCms which you must previously download > (version 1.0.4). Assuming you downloaded in c:\cppcms: > > > > - cd c:\cppCms > > - create build folder inside. > > - cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release > DCMAKE_INSTALL_PREFIX="c:/cppcms/cppcms" -DCMAKE_INCLUDE_PATH=”{list of > folders where are include files of pcre,zlib and OpenSSL, separated by ;}" > - > DCMAKE_LIBRARY_PATH=”{ list of folders where are the -lib files of > pcre,zlib and OpenSSL, separated by ;}" -DOPENSSL_INCLUDE_DIR="{path of > include folder for OpenSSL}” -DLIB_OPENSSL="{folder where is the .lib of > openSSL}/VC/libeay32MD.lib" .. > > - nmake > > - nmake test > > - (wait many minutes.....) > > - nmake install > > > > the executables of cppCms will be created into program files, you can then > move to another particular folder. > > That is all. Hope it helps. If you ned more help, let me know. > > Regards. > > > > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
|
From: Vizcayno <viz...@gm...> - 2013-06-28 04:31:49
|
Hello, Please read carefully all the indications about installation of cppCms in the corresponding links for Windows. It is important that you can download all the necessary software indicated as requisites. ==>ZLIB: Download zlib128-dll.zip (compiled DLL) from http://zlib.net, unzip and follow the indications contained in file USAGE.txt inside .zip file. ==>PCRE: Download pcre-8.33.zip from www.pcre.org because the precompiled version offered in this site corresponds to version 7. The zip file contains source code so, you need to build the .lib and .dll files. Assuming you downloaded to c:\pcre, follow next steps in the DOS cmd: - Cd c:\pcre - Unzip file - set path=%path%;{directory of cmake}\bin - cd C:\pcre\pcre-8.33 - md build - cd build - run cmake-gui, then fill next data on the screen: Where is the source code: c:/pcre/pcre-8.33 Where to build the binaries: c:/pcre/pcre-8.33/build - Then press configure button and wait some seconds - Change some parameters: BUILD_SHARED_LIBS -> X PCRE_SUPPORT_UTF -> X CMAKE_BUILD_TYPE -> Release (Create line if necessary) CMAKE_INSTALL_PREFIX -> C:/ pcre CMAKE_C_FLAGS_RELEASE -> /MD /EHsc /Ox /Ob2 /Oi /D NDEBUG - Then, press generate button selecting the compiler you have (I assume VC). After that, a .sln file is generated, which you can use to build the .dll files. If you have problems with .h files, it may be caused by the inclusion of the word .generic appended in the name, erase those characters from filename. - Once you have the .dll, you can test executing pcre_test.bat (in build folder). ==>OPENSSL: Download Openssl from http://slproweb.com/products/Win32OpenSSL.html. The object to download is Win32 OpenSSL v1.0.1e It is necessary to have installed the Visual C++ 2008 redistributable. That is all wil the dependent object. Now we go to cppCms build. Invoke the command prompt of VS.. with administrative privileges. ==>CPPCMS. Once you have all the dependencies resolved and you know where in your disk are the .lib, -h and .dll files created of PCRE, ZLIB an OPENSSL, you can build the cppCms which you must previously download (version 1.0.4). Assuming you downloaded in c:\cppcms: - cd c:\cppCms - create build folder inside. - cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release DCMAKE_INSTALL_PREFIX="c:/cppcms/cppcms" -DCMAKE_INCLUDE_PATH=”{list of folders where are include files of pcre,zlib and OpenSSL, separated by ;}" - DCMAKE_LIBRARY_PATH=”{ list of folders where are the -lib files of pcre,zlib and OpenSSL, separated by ;}" -DOPENSSL_INCLUDE_DIR="{path of include folder for OpenSSL}” -DLIB_OPENSSL="{folder where is the .lib of openSSL}/VC/libeay32MD.lib" .. - nmake - nmake test - (wait many minutes.....) - nmake install the executables of cppCms will be created into program files, you can then move to another particular folder. That is all. Hope it helps. If you ned more help, let me know. Regards. |
|
From: Szilágyi Z. <zol...@ya...> - 2013-06-27 17:40:02
|
Hi, I am new to cppcms. I tried to compile it on Debian 7 squeeze following the instructions. Everything working flawless. But on win xp I have really hard time, 3 days spent on it, without success.This is mostly because of the dependencies I guess. It is really hard to get the right binaries, even getting the right binaries there could be version number issue.And compiling from source code, all of the dependencies with the latest version available would be the right think to do, but it is huge pain in the ass to do that. Ok: I still don't get it to make the thinks working on win xp. Running nmake test I get: 31% tests passed, 58 tests failed out of 84 Total Test time (real) = 13.69 sec The following tests FAILED: 1 - base64_test (OTHER_FAULT) 2 - encryptor_test (OTHER_FAULT) 3 - storage_test (OTHER_FAULT) 4 - json_test (OTHER_FAULT) 5 - multipart_parser_test (OTHER_FAULT) 6 - content_type_parser_test (OTHER_FAULT) 7 - cache_backend_test (OTHER_FAULT) 8 - serialization_test (OTHER_FAULT) 9 - xss_test (OTHER_FAULT) 10 - rewrite_test (OTHER_FAULT) 11 - url_mapper_test (OTHER_FAULT) 12 - copy_filter_test (OTHER_FAULT) 13 - mount_point_test (OTHER_FAULT) 14 - tc_test (OTHER_FAULT) 15 - status_test (OTHER_FAULT) 16 - async_status_test (OTHER_FAULT) 17 - form_test (OTHER_FAULT) 18 - cookie_test (OTHER_FAULT) 19 - internal_forwarder_test (OTHER_FAULT) 20 - forwarder_test (OTHER_FAULT) 21 - jsonrpc_test (OTHER_FAULT) 22 - http_timeouts_test_read (OTHER_FAULT) 23 - http_timeouts_test_write (OTHER_FAULT) 24 - file_server_test (OTHER_FAULT) 25 - file_server_with_listing_test (OTHER_FAULT) 26 - disco_test_http (OTHER_FAULT) 27 - disco_test_fastcgi_tcp (OTHER_FAULT) 28 - disco_test_scgi_tcp (OTHER_FAULT) 29 - secure_post_test (OTHER_FAULT) 30 - gzip_test (OTHER_FAULT) 31 - cache_frontend_test (OTHER_FAULT) 32 - session_interface_test_client_renew (OTHER_FAULT) 33 - session_interface_test_client_browser (OTHER_FAULT) 34 - session_interface_test_client_fixed (OTHER_FAULT) 35 - session_interface_test_server_renew (OTHER_FAULT) 36 - session_interface_test_server_browser (OTHER_FAULT) 37 - session_interface_test_server_fixed (OTHER_FAULT) 38 - session_interface_test_both_renew (OTHER_FAULT) 39 - session_interface_test_both_browser (OTHER_FAULT) 40 - session_interface_test_both_fixed (OTHER_FAULT) 41 - proto_test_async_http (OTHER_FAULT) 42 - proto_test_async_scgi (OTHER_FAULT) 43 - proto_test_async_fastcgi (OTHER_FAULT) 44 - proto_test_sync_http (OTHER_FAULT) 45 - proto_test_sync_scgi (OTHER_FAULT) 46 - proto_test_sync_fastcgi (OTHER_FAULT) 47 - loadable_storage_pass (OTHER_FAULT) 48 - loadable_storage_fail (OTHER_FAULT) 66 - test_locale_codepage (Failed) 67 - test_locale_message (Failed) 70 - test_locale_date_time (Failed) 71 - test_locale_generator (Failed) 72 - test_locale_config (Failed) 74 - test_locale_collate (Failed) 75 - test_locale_convert (Failed) 76 - test_locale_boundary (Failed) 77 - test_locale_formatting (Failed) 78 - test_locale_icu_vs_os_timezone (Failed) Errors while running CTest NMAKE : fatal error U1077: 'echo' : return code '0x8' Stop. Strange thing that noticed on Linux there are 93 tests for the same cppcms-1.0.4 while on windows it seems to be 84.( I could be because of crash maybe during the tests.) Somebody could help me to install cppcms on windows xp? Or somebody could supplying the right dependencies ( or at least their version numbers). Mingw build would be a better option for windows xp vs MSVC? If anybody succeeded installing cppcms on win xp could share his experience with me? Btw it would not be a good idea to share the needed dependencies via install.exe for windows, or a zip file, copy -paste way, supposing that the dependencies don't change in a way that could affect cppcms builds? ( I made once a time application in qt and I made also Linux version. For the windows I have setup.exe. So I want to build setup also for Linux version but just could not find good alternative for setup exe style only deb, rpm... packages so I ended in writing a bash file for the setup in Linux.Windows and Linux differ so choosing a path that works fine one system it is very hard on the other so I guess for windows should exists something in windows style.At least dependencies via install.exe) Thank you, Zoltán |
|
From: Artyom B. <art...@ya...> - 2013-06-26 07:01:29
|
>________________________________ > From: Shutov Sergey <ser...@gm...> >To: cpp...@li... >Sent: Monday, June 24, 2013 11:02 PM >Subject: Re: [Cppcms-users] CppCMS 1.0.4 Released - bug fix release > > >Thank you very much. > >p.s. I thinking you release 1.1.x version :) when you release it? > > Short answer: ------------- when it is ready. Long answer: ------------ I have some serious and important features to implement that would provide a significant leap forward, but it takes time. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ |
|
From: Artyom B. <art...@ya...> - 2013-06-26 06:58:55
|
First of all I'd suggest to set both lighttpd and cppcms ports above 1024 (that do not require admin permissions) i.e. lighttpd 8080, fastcgi 8081 and see if there is a progress. Also take a look on AV or firewall logs windows tend to block networking programs unless you permit them to listen explicitly. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Vizcayno <viz...@gm...> >To: cpp...@li... >Sent: Tuesday, June 25, 2013 9:30 PM >Subject: Re: [Cppcms-users] Can't get lighttpd to work with cppcms in Windows 7 > > >Artyom Beilis <artyomtnk@...> writes: > >> >> >> It seems that both lighttpd listens on 80 and fastcgi, change, fastcgi >port to a different one >> >> > >Artyom, thanks for your attention. I followed your indications but I have a >new problem. It seems not to be related with cppCms, but according to your >experience, I ask for your help or tips again. > >Initially I kept default port 80 to lighttpd (it worked) and 8080 to >fastcgi, I also put 8080 to configLH.js for the hello.exe program. > >When running: >:lighttpd -D -f lighttpd.conf I get next message but the machine did not >crash: > >2013-06-25 14:07:07: (log.c.166) server started >2013-06-25 14:07:07: (mod_fastcgi.c.1365) --- fastcgi spawning local > proc: c:/apps/vcApps/cppCms/Release/hello -c >c:/apps/vcApps/cppCms/Relea >se/configLH.js > port: 8080 > socket > max-procs: 1 >2013-06-25 14:07:07: (mod_fastcgi.c.1389) --- fastcgi spawning > port: 8080 > socket > current: 0 / 1 >system: an attempt was made to access a socket in a way forbidden by its >access permissions > >It seems that the error is originated in the hello exe program when I >invoke from: >... "bin-path" => "c:/apps/vcApps/cppCms/Release/hello -c >c:/apps/vcApps/cppCms/Release/configLH.js", ... > >I did another test: >I changed the port of lighttpd with server.port = 8080 (it works, too) and >kept the fastcgi port to 80. I kept the same port 80 for the file >configLH.js also. The results are the same for fastcgi. > >I am using windows 7, 64 bits with last versión of lighttp for windows >(LightTPD for Windows - With OpenSSL) version 1.4.32-1 (IPv6). The machine >is in corporate network. I would suspect of restrictions in the firewall >but the administrator indicated me that the lighttpd should work. I also >installed the new and last version of cppCms without problems (thanks for >that!!). > >Regards > >Vizcayno. > > > > > > > > >------------------------------------------------------------------------------ >This SF.net email is sponsored by Windows: > >Build for Windows Store. > >http://p.sf.net/sfu/windows-dev2dev >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Lee E. <le...@el...> - 2013-06-25 21:16:31
|
the select widget has two methods you may be interested in: http://cppcms.com/cppcms_ref/latest/classcppcms_1_1widgets_1_1select__base.html#ad1a5e79b6f21a0660d0767030a294697 http://cppcms.com/cppcms_ref/latest/classcppcms_1_1widgets_1_1select__base.html#ad59c85ad04ffb550579ea4feef9e28d8 those give you either the index of the selected item - or its id string (the "2" in your case) there is no API to get back from the id to the message you set for the options (the "two") (and as i wrote - that information is NEVER sent from the client back to the server anyhow) but since you built it - you can get to it from the id value you can get too - or change the id value to be the same as the message value (both are strings anyhow) On Tue, Jun 25, 2013 at 2:41 PM, ccppprogrammer <ccp...@gm...>wrote: > Data already exists on server (array with data which I filled select html > element), e.g. > cppcms::widgets::select select; > select.add("one", "1"); > select.add("two", "2"); > select.add("three", "3"); > > So we just need to take selected key (value="x") from POST and get value > from array of data by the key. > > > > On Wed, Jun 19, 2013 at 7:42 AM, Lee Elenbaas <le...@el...> wrote: > >> you have a problem with your HTML >> >> since your option is like this: <option value="2">two</option> >> the text "two" is used as label - and the browser will NOT send it back >> to the server, insead it will send the value "2" >> >> if you want the value sent from the server to be something else - place >> whatever you want on the value attribute of the option >> >> >> On Tue, Jun 11, 2013 at 7:52 PM, ccppprogrammer <ccp...@gm... >> > wrote: >> >>> ... small typo in sample html element: >>> <select name="test"> >>> <option value="1">one</option> >>> <option value="2" selected>two</option> >>> </select> >>> >>> So I need method to get value "two" from test widget. >>> >>> >>> On Tue, Jun 11, 2013 at 8:28 PM, ccppprogrammer < >>> ccp...@gm...> wrote: >>> >>>> Dear All! >>>> >>>> I didn't find method to get selected value of cppcms::widgets::select. >>>> I need method to get value "two" from test widget. >>>> Unfortunately selected() method returns integer index of the list not >>>> value. >>>> >>>> http://cppcms.com/cppcms_ref/1.0.2/classcppcms_1_1widgets_1_1select__base.html >>>> >>>> <select name="test"> >>>> <option value="one">1</option> >>>> <option value="two" selected>2</option> >>>> </select> >>>> >>>> Thanks in advance! >>>> >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> This SF.net email is sponsored by Windows: >>> >>> Build for Windows Store. >>> >>> http://p.sf.net/sfu/windows-dev2dev >>> _______________________________________________ >>> Cppcms-users mailing list >>> Cpp...@li... >>> https://lists.sourceforge.net/lists/listinfo/cppcms-users >>> >>> >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Windows: >> >> Build for Windows Store. >> >> http://p.sf.net/sfu/windows-dev2dev >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
|
From: Vizcayno <viz...@gm...> - 2013-06-25 18:30:55
|
Artyom Beilis <artyomtnk@...> writes:
>
>
> It seems that both lighttpd listens on 80 and fastcgi, change, fastcgi
port to a different one
>
>
Artyom, thanks for your attention. I followed your indications but I have a
new problem. It seems not to be related with cppCms, but according to your
experience, I ask for your help or tips again.
Initially I kept default port 80 to lighttpd (it worked) and 8080 to
fastcgi, I also put 8080 to configLH.js for the hello.exe program.
When running:
:lighttpd -D -f lighttpd.conf I get next message but the machine did not
crash:
2013-06-25 14:07:07: (log.c.166) server started
2013-06-25 14:07:07: (mod_fastcgi.c.1365) --- fastcgi spawning local
proc: c:/apps/vcApps/cppCms/Release/hello -c
c:/apps/vcApps/cppCms/Relea
se/configLH.js
port: 8080
socket
max-procs: 1
2013-06-25 14:07:07: (mod_fastcgi.c.1389) --- fastcgi spawning
port: 8080
socket
current: 0 / 1
system: an attempt was made to access a socket in a way forbidden by its
access permissions
It seems that the error is originated in the hello exe program when I
invoke from:
... "bin-path" => "c:/apps/vcApps/cppCms/Release/hello -c
c:/apps/vcApps/cppCms/Release/configLH.js", ...
I did another test:
I changed the port of lighttpd with server.port = 8080 (it works, too) and
kept the fastcgi port to 80. I kept the same port 80 for the file
configLH.js also. The results are the same for fastcgi.
I am using windows 7, 64 bits with last versión of lighttp for windows
(LightTPD for Windows - With OpenSSL) version 1.4.32-1 (IPv6). The machine
is in corporate network. I would suspect of restrictions in the firewall
but the administrator indicated me that the lighttpd should work. I also
installed the new and last version of cppCms without problems (thanks for
that!!).
Regards
Vizcayno.
|
|
From: ccppprogrammer <ccp...@gm...> - 2013-06-25 11:42:07
|
Data already exists on server (array with data which I filled select html
element), e.g.
cppcms::widgets::select select;
select.add("one", "1");
select.add("two", "2");
select.add("three", "3");
So we just need to take selected key (value="x") from POST and get value
from array of data by the key.
On Wed, Jun 19, 2013 at 7:42 AM, Lee Elenbaas <le...@el...> wrote:
> you have a problem with your HTML
>
> since your option is like this: <option value="2">two</option>
> the text "two" is used as label - and the browser will NOT send it back to
> the server, insead it will send the value "2"
>
> if you want the value sent from the server to be something else - place
> whatever you want on the value attribute of the option
>
>
> On Tue, Jun 11, 2013 at 7:52 PM, ccppprogrammer <ccp...@gm...>wrote:
>
>> ... small typo in sample html element:
>> <select name="test">
>> <option value="1">one</option>
>> <option value="2" selected>two</option>
>> </select>
>>
>> So I need method to get value "two" from test widget.
>>
>>
>> On Tue, Jun 11, 2013 at 8:28 PM, ccppprogrammer <ccp...@gm...
>> > wrote:
>>
>>> Dear All!
>>>
>>> I didn't find method to get selected value of cppcms::widgets::select.
>>> I need method to get value "two" from test widget.
>>> Unfortunately selected() method returns integer index of the list not
>>> value.
>>>
>>> http://cppcms.com/cppcms_ref/1.0.2/classcppcms_1_1widgets_1_1select__base.html
>>>
>>> <select name="test">
>>> <option value="one">1</option>
>>> <option value="two" selected>2</option>
>>> </select>
>>>
>>> Thanks in advance!
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by Windows:
>>
>> Build for Windows Store.
>>
>> http://p.sf.net/sfu/windows-dev2dev
>> _______________________________________________
>> Cppcms-users mailing list
>> Cpp...@li...
>> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>>
>>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
>
|
|
From: Petr J. <ele...@ex...> - 2013-06-25 01:18:02
|
Done. https://sourceforge.net/p/cppcms/bugs/98/ Also please note that this bug report and the attached patch https://sourceforge.net/p/cppcms/bugs/97/ Accidentally posted it as anonymous. On 25/06/2013 5:17 AM, Artyom Beilis wrote: > Hi, can you please open a ticket. I'll look into it? > > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > > > ----- Original Message ----- >> From: "ele...@ex..." <ele...@ex...> >> To: cpp...@li... >> Cc: >> Sent: Monday, June 17, 2013 12:47 PM >> Subject: Re: [Cppcms-users] booster::locale::as::ftime(...) sometimes causes > wrong result >> >> Simple test: >> >> #include <booster/locale.h> >> #include <iostream> >> #include <sstream> >> >> using namespace booster::locale; >> using namespace std; >> >> int main() >> { >> generator gen; >> std::locale::global(gen("")); >> std::cout.imbue(std::locale()); >> >> string str1="2010-08-10"; >> string str2="10-08-2010"; >> >> istringstream is(str1); >> date_time dt; >> >> is >> as::ftime("%Y-%m-%d") >> dt; >> cout << as::date << dt << endl; >> >> istringstream is2(str2); >> date_time dt2; >> >> is2 >> as::ftime("%d-%m-%Y") >> dt2; >> cout << as::date << dt2 << endl; >> } >> >> Prints: >> >> [petr@petr-archlinux ~]$ ./a.out >> 10/08/2010 >> 20/12/2009 >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Windows: >> >> Build for Windows Store. >> >> http://p.sf.net/sfu/windows-dev2dev >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > -- Please use PGP to encrypt your email to ensure our privacy is respected. |
|
From: Shutov S. <ser...@gm...> - 2013-06-24 20:02:56
|
Thank you very much. p.s. I thinking you release 1.1.x version :) when you release it? |
|
From: Karsten A. <kar...@go...> - 2013-06-24 19:46:32
|
Ok, thanks for explanation and sorry for the noise. On 06/24/2013 09:23 PM, Artyom Beilis wrote: > I recall that issue was discussed before. > > It is not "leak" it is reachable code - there are some global object > using locale that destroyed after main. > > So they are not actual leak. > > See: http://comments.gmane.org/gmane.comp.lib.boost.devel/239199 > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > ------------------------------------------------------------------------ > *From:* Karsten Ahnert <kar...@go...> > *To:* cpp...@li... > *Sent:* Thursday, June 20, 2013 11:49 AM > *Subject:* [Cppcms-users] memory leaks in hello_world > > Hi, > > I run the Hello World application of the current cppcms with valgrind. > After stopping the application with sending SIGTERM valgrind reports > that 18k have not been correctly destroyed. Most of these blocks are > related to ICU. Is there anything I can do to cleanup memory correctly? > > Best regards, > > Karsten > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > <mailto:Cpp...@li...> > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > > > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
|
From: Shiv S. D. <shi...@gm...> - 2013-06-24 19:39:32
|
I found that myself. :-) Thanks for help. I was wondering how come 1.0.3 had compiled so I just checked error log of CMake. On Tue, Jun 25, 2013 at 1:07 AM, Artyom Beilis <art...@ya...> wrote: > It is common issue: it is usually the case were you have multiple > installation of libiconv - one GNU's one (ports) and another that comes > with Mac OS X - it is shipped from 10.6 or 10.5 I don't remember. > > (search for iconv.h and libiconv.* and you are likely to find multiple > instances) > > You need to either remove port's iconv or pass -DCMAKE_INCLUDE_PATH and > -DCMAKE_LIBRARY_PATH options that would point to correct location > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > ------------------------------ > *From:* Shiv Shankar Dayal <shi...@gm...> > *To:* cpp...@li... > *Sent:* Monday, June 24, 2013 10:29 PM > *Subject:* [Cppcms-users] iconv detection failure by cmake > > Shivs-MacBook-Pro:build shiv$ cmake .. > -- The C compiler identification is Clang 4.1.0 > -- The CXX compiler identification is Clang 4.1.0 > -- Check for working C compiler: /usr/bin/cc > -- Check for working C compiler: /usr/bin/cc -- works > -- Detecting C compiler ABI info > -- Detecting C compiler ABI info - done > -- Check for working CXX compiler: /usr/bin/c++ > -- Check for working CXX compiler: /usr/bin/c++ -- works > -- Detecting CXX compiler ABI info > -- Detecting CXX compiler ABI info - done > CMake Warning at /opt/local/share/cmake-2.8/Modules/CPack.cmake:289 > (message): > CPack.cmake has already been included!! > Call Stack (most recent call first): > booster/CMakeLists.txt:14 (include) > > > -- Looking for ICU libraries > -- ICU Found, building booster locale > -- Performing Test LIBC_ICONV > -- Performing Test LIBC_ICONV - Failed > -- Looking for dlopen > -- Looking for dlopen - found > -- Looking for socket > -- Looking for socket - found > -- Looking for gethostbyname > -- Looking for gethostbyname - found > -- Performing Test BOOSTER_HAS_GCC_SYNC > -- Performing Test BOOSTER_HAS_GCC_SYNC - Success > -- Performing Test BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD > -- Performing Test BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD - Failed > -- Performing Test BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD > -- Performing Test BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD - Success > -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC > -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC - Failed > -- Performing Test BOOSTER_HAVE_EXECINFO > -- Performing Test BOOSTER_HAVE_EXECINFO - Success > -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC > -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC - Failed > -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC > -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC - Success > -- Performing Test BOOSTER_HAVE_STDINT_H > -- Performing Test BOOSTER_HAVE_STDINT_H - Success > -- Performing Test BOOSTER_HAVE_INTTYPES_H > -- Performing Test BOOSTER_HAVE_INTTYPES_H - Success > -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 > -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 - Success > -- Performing Test CPPCMS_HAVE_STDINT_H > -- Performing Test CPPCMS_HAVE_STDINT_H - Success > -- Performing Test CPPCMS_HAVE_INTTYPES_H > -- Performing Test CPPCMS_HAVE_INTTYPES_H - Success > -- Looking for atoll > -- Looking for atoll - found > -- Looking for _atoi64 > -- Looking for _atoi64 - not found > -- Looking for snprintf > -- Looking for snprintf - found > -- Looking for stat > -- Looking for stat - found > -- Looking for _stat > -- Looking for _stat - not found > -- Performing Test CPPCMS_HAVE_STD_WSTRING > -- Performing Test CPPCMS_HAVE_STD_WSTRING - Success > -- Performing Test CPPCMS_HAVE_BSD_TM > -- Performing Test CPPCMS_HAVE_BSD_TM - Success > -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING > -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING - Failed > -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO > -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO - Success > -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE > -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE - Failed > -- Performing Test CPPCMS_HAVE_GCC_TYPEOF > -- Performing Test CPPCMS_HAVE_GCC_TYPEOF - Success > -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF > -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF - Success > -- Looking for dlopen > -- Looking for dlopen - found > -- Looking for socket > -- Looking for socket - found > -- Looking for gethostbyname > -- Looking for gethostbyname - found > -- Looking for canonicalize_file_name > -- Looking for canonicalize_file_name - not found > -- Configuring done > -- Generating done > -- Build files have been written to: > /Volumes/Data/Downloads/cppcms-1.0.4/build > Shivs-MacBook-Pro:build shiv$ > > For some reason CMake does not detect libiconv while it is installed. I am > using MacPorts for that. Because of this the booster_locale build linking > is failing. Any idea? > > -- > Best regards, > Shiv Shankar Dayal > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > -- Best regards, Shiv Shankar Dayal |
|
From: Artyom B. <art...@ya...> - 2013-06-24 19:37:11
|
It is common issue: it is usually the case were you have multiple installation of libiconv - one GNU's one (ports) and another that comes with Mac OS X - it is shipped from 10.6 or 10.5 I don't remember. (search for iconv.h and libiconv.* and you are likely to find multiple instances) You need to either remove port's iconv or pass -DCMAKE_INCLUDE_PATH and -DCMAKE_LIBRARY_PATH options that would point to correct location Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Shiv Shankar Dayal <shi...@gm...> >To: cpp...@li... >Sent: Monday, June 24, 2013 10:29 PM >Subject: [Cppcms-users] iconv detection failure by cmake > > > >Shivs-MacBook-Pro:build shiv$ cmake .. >-- The C compiler identification is Clang 4.1.0 >-- The CXX compiler identification is Clang 4.1.0 >-- Check for working C compiler: /usr/bin/cc >-- Check for working C compiler: /usr/bin/cc -- works >-- Detecting C compiler ABI info >-- Detecting C compiler ABI info - done >-- Check for working CXX compiler: /usr/bin/c++ >-- Check for working CXX compiler: /usr/bin/c++ -- works >-- Detecting CXX compiler ABI info >-- Detecting CXX compiler ABI info - done >CMake Warning at /opt/local/share/cmake-2.8/Modules/CPack.cmake:289 (message): > CPack.cmake has already been included!! >Call Stack (most recent call first): > booster/CMakeLists.txt:14 (include) > > >-- Looking for ICU libraries >-- ICU Found, building booster locale >-- Performing Test LIBC_ICONV >-- Performing Test LIBC_ICONV - Failed >-- Looking for dlopen >-- Looking for dlopen - found >-- Looking for socket >-- Looking for socket - found >-- Looking for gethostbyname >-- Looking for gethostbyname - found >-- Performing Test BOOSTER_HAS_GCC_SYNC >-- Performing Test BOOSTER_HAS_GCC_SYNC - Success >-- Performing Test BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD >-- Performing Test BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD - Failed >-- Performing Test BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD >-- Performing Test BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD - Success >-- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC >-- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC - Failed >-- Performing Test BOOSTER_HAVE_EXECINFO >-- Performing Test BOOSTER_HAVE_EXECINFO - Success >-- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC >-- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC - Failed >-- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC >-- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC - Success >-- Performing Test BOOSTER_HAVE_STDINT_H >-- Performing Test BOOSTER_HAVE_STDINT_H - Success >-- Performing Test BOOSTER_HAVE_INTTYPES_H >-- Performing Test BOOSTER_HAVE_INTTYPES_H - Success >-- Performing Test BOOSTER_AIO_HAVE_PF_INET6 >-- Performing Test BOOSTER_AIO_HAVE_PF_INET6 - Success >-- Performing Test CPPCMS_HAVE_STDINT_H >-- Performing Test CPPCMS_HAVE_STDINT_H - Success >-- Performing Test CPPCMS_HAVE_INTTYPES_H >-- Performing Test CPPCMS_HAVE_INTTYPES_H - Success >-- Looking for atoll >-- Looking for atoll - found >-- Looking for _atoi64 >-- Looking for _atoi64 - not found >-- Looking for snprintf >-- Looking for snprintf - found >-- Looking for stat >-- Looking for stat - found >-- Looking for _stat >-- Looking for _stat - not found >-- Performing Test CPPCMS_HAVE_STD_WSTRING >-- Performing Test CPPCMS_HAVE_STD_WSTRING - Success >-- Performing Test CPPCMS_HAVE_BSD_TM >-- Performing Test CPPCMS_HAVE_BSD_TM - Success >-- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING >-- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING - Failed >-- Performing Test CPPCMS_HAVE_CPP_0X_AUTO >-- Performing Test CPPCMS_HAVE_CPP_0X_AUTO - Success >-- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE >-- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE - Failed >-- Performing Test CPPCMS_HAVE_GCC_TYPEOF >-- Performing Test CPPCMS_HAVE_GCC_TYPEOF - Success >-- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF >-- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF - Success >-- Looking for dlopen >-- Looking for dlopen - found >-- Looking for socket >-- Looking for socket - found >-- Looking for gethostbyname >-- Looking for gethostbyname - found >-- Looking for canonicalize_file_name >-- Looking for canonicalize_file_name - not found >-- Configuring done >-- Generating done >-- Build files have been written to: /Volumes/Data/Downloads/cppcms-1.0.4/build >Shivs-MacBook-Pro:build shiv$ > >For some reason CMake does not detect libiconv while it is installed. I am using MacPorts for that. Because of this the booster_locale build linking is failing. Any idea? > > >-- >Best regards, >Shiv Shankar Dayal >------------------------------------------------------------------------------ >This SF.net email is sponsored by Windows: > >Build for Windows Store. > >http://p.sf.net/sfu/windows-dev2dev >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Shiv S. D. <shi...@gm...> - 2013-06-24 19:29:37
|
Shivs-MacBook-Pro:build shiv$ cmake .. -- The C compiler identification is Clang 4.1.0 -- The CXX compiler identification is Clang 4.1.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done CMake Warning at /opt/local/share/cmake-2.8/Modules/CPack.cmake:289 (message): CPack.cmake has already been included!! Call Stack (most recent call first): booster/CMakeLists.txt:14 (include) -- Looking for ICU libraries -- ICU Found, building booster locale -- Performing Test LIBC_ICONV -- Performing Test LIBC_ICONV - Failed -- Looking for dlopen -- Looking for dlopen - found -- Looking for socket -- Looking for socket - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Performing Test BOOSTER_HAS_GCC_SYNC -- Performing Test BOOSTER_HAS_GCC_SYNC - Success -- Performing Test BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD -- Performing Test BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD - Failed -- Performing Test BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD -- Performing Test BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD - Success -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_EXECINFO -- Performing Test BOOSTER_HAVE_EXECINFO - Success -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC - Success -- Performing Test BOOSTER_HAVE_STDINT_H -- Performing Test BOOSTER_HAVE_STDINT_H - Success -- Performing Test BOOSTER_HAVE_INTTYPES_H -- Performing Test BOOSTER_HAVE_INTTYPES_H - Success -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 - Success -- Performing Test CPPCMS_HAVE_STDINT_H -- Performing Test CPPCMS_HAVE_STDINT_H - Success -- Performing Test CPPCMS_HAVE_INTTYPES_H -- Performing Test CPPCMS_HAVE_INTTYPES_H - Success -- Looking for atoll -- Looking for atoll - found -- Looking for _atoi64 -- Looking for _atoi64 - not found -- Looking for snprintf -- Looking for snprintf - found -- Looking for stat -- Looking for stat - found -- Looking for _stat -- Looking for _stat - not found -- Performing Test CPPCMS_HAVE_STD_WSTRING -- Performing Test CPPCMS_HAVE_STD_WSTRING - Success -- Performing Test CPPCMS_HAVE_BSD_TM -- Performing Test CPPCMS_HAVE_BSD_TM - Success -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING - Failed -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO - Success -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE - Failed -- Performing Test CPPCMS_HAVE_GCC_TYPEOF -- Performing Test CPPCMS_HAVE_GCC_TYPEOF - Success -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF - Success -- Looking for dlopen -- Looking for dlopen - found -- Looking for socket -- Looking for socket - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for canonicalize_file_name -- Looking for canonicalize_file_name - not found -- Configuring done -- Generating done -- Build files have been written to: /Volumes/Data/Downloads/cppcms-1.0.4/build Shivs-MacBook-Pro:build shiv$ For some reason CMake does not detect libiconv while it is installed. I am using MacPorts for that. Because of this the booster_locale build linking is failing. Any idea? -- Best regards, Shiv Shankar Dayal |
|
From: Shiv S. D. <shi...@gm...> - 2013-06-24 19:26:22
|
No I never had problems. It was reported by another user. On Tue, Jun 25, 2013 at 12:49 AM, Artyom Beilis <art...@ya...> wrote: > Actually, I have not seen any problems with ICU version you are talking > about. > > I think we need to try to see what exactly happended in your case, because > on Ubuntu it works perfectly fine. > > Also why wouldn't you take the deb packages ready for Ubuntu? (I recall > that was the Linux you are working on) > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > ------------------------------ > *From:* Shiv Shankar Dayal <shi...@gm...> > *To:* Artyom Beilis <art...@ya...>; > cpp...@li... > *Sent:* Monday, June 24, 2013 10:17 PM > *Subject:* Re: [Cppcms-users] CppCMS 1.0.4 Released - bug fix release > > Hi Artyom, > > I have not checked latest code but is the ICU build error reported a month > ago or so is fixed? > > > > On Tue, Jun 25, 2013 at 12:40 AM, Artyom Beilis <art...@ya...>wrote: > > This is a critical bug fix release that relates to session handing in > Internet Explorer. > > Added "Expires" to cookie expiration time handling that is supported by IE. > > Prior to this release, cppcms session cookies used max-age option, that IE > does not recognize. Starting from this release the session cookies would > have both Expires and Max-Age options. All browsers that use Max-Age would > ignore Expires if both given. > > New options that control the session cookie properties are added, see > expiration_method [1] that would allow to alter the behavior > and handle possible clock skew issues > > Special thanks to Saikumar Gandapodi who reported me this issue. > > > [1] > http://cppcms.com/wikipp/en/page/cppcms_1x_config#session.cookies.expiration_method > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > Respect, > Shiv > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > -- Best regards, Shiv Shankar Dayal |
|
From: Artyom B. <art...@ya...> - 2013-06-24 19:24:23
|
It seems that both lighttpd listens on 80 and fastcgi, change, fastcgi port to a different one Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Vizcayno <viz...@gm...> >To: cpp...@li... >Sent: Sunday, June 23, 2013 2:33 AM >Subject: [Cppcms-users] Can't get lighttpd to work with cppcms in Windows 7 > > >Hello: > >I have the next hello.cpp program: > > > >#include <cppcms/application.h> > >#include <cppcms/applications_pool.h> > >#include <cppcms/service.h> > >#include <cppcms/http_response.h> > >#include <iostream> > > > >class hello : public cppcms::application { > >public: > > hello(cppcms::service &srv) : > > cppcms::application(srv) > > { > > } > > virtual void main(std::string url); > >}; > > > >void hello::main(std::string /*url*/) > >{ > > response().out() << > > "<html>\n" > > "<body>\n" > > " <h1>Hello World</h1>\n" > > "</body>\n" > > "<script language=\"javascript\">\n" > > "<!--\n" > > "today = new Date();\n" > > "document.write(\"<BR>The time now is: \", today.getHours(), >\":\",today.getMinutes(),\":\",today.getSeconds());\n" > > "document.write(\"<BR>The date is: \", today.getDate(),\"/\", >today.getMonth()+1,\"/\",today.getFullYear());\n" > > "//-->\n" > > "</script>\n" > > "</html>\n"; > >} > > > >int main(int argc,char ** argv) > >{ > > try { > > cppcms::service srv(argc,argv); > > srv.applications_pool().mount( > > cppcms::applications_factory<hello>() > > ); > > srv.run(); > > } > > catch(std::exception const &e) { > > std::cerr << e.what() << std::endl; > > } > >} > > > >====================================================================== > >The configuration file that I called configLH.js contains: > >{ > > "service" : { > > "api" : "fastcgi", > > "ip": "127.0.0.1" , > > "port" : 80 > > } > >} > > > >====================================================================== > >The configuration of lighttpd contains: > >server.modules = ( > > "mod_access", > > "mod_accesslog", > > "mod_fastcgi", > > "mod_rewrite", > > "mod_status", > > ) > >include "variables.conf" > >include "mimetype.conf" > >server.document-root = server_root + "/htdocs" > >server.upload-dirs = ( temp_dir ) > >index-file.names = >( "index.php", "index.pl", "index.cgi", "index.cml", > > "index.html", "index.htm", "default.htm" ) > >server.event-handler = "libev" > > > >url.access-deny = ( "~", ".inc" ) > > > >$HTTP["url"] =~ "\.pdf$" { > > server.range-requests = "disable" > >} > > > >static-file.exclude-extensions = ( ".php", ".pl", ".cgi" ) > > > >dir-listing.activate = "enable" > > > >debug.log-file-not-found = "enable" > > > >fastcgi.server = ( > > ## The script name of the application > > "/hello" => (( > > ## Command line to run > > "bin-path" => "c:/apps/vcApps/cppCms/Release/hello -c >c:/apps/vcApps/cppCms/Release/configLH.js", > > "host" => "127.0.0.1", > > "port" => 80, > > "max-procs" => 1, > > "check-local" => "disable" > > )) > >) > > > >========================================================================= > >When I invoke the lighttpd from DOS cmd I get the next results: > >:lighttpd -D -f lighttpd.conf > >2013-06-22 19:24:43: (log.c.166) server started > >2013-06-22 19:24:43: (mod_fastcgi.c.1365) --- fastcgi spawning local > > proc: c:/apps/vcApps/cppCms/Release/hello -c >c:/apps/vcApps/cppCms/Relea > >se/configLH.js > > port: 80 > > socket > > max-procs: 1 > >2013-06-22 19:24:43: (mod_fastcgi.c.1389) --- fastcgi spawning > > port: 80 > > socket > > current: 0 / 1 > > > >======================================================================== > >Then I type the next in the IE browser: > >http://localhost/hello > > > >while I am waiting for an answer, the next message shows in the dos cmd >(look at the time elapsed): > >2013-06-22 19:26:08: (mod_fastcgi.c.3035) got proc: pid: 0 socket: >tcp:127.0.0.1 > >:80 load: 1 > >2013-06-22 19:27:09: (mod_fastcgi.c.2543) unexpected end-of-file (perhaps >the fa > >stcgi process died): pid: 0 socket: tcp:127.0.0.1:80 > >2013-06-22 19:27:09: (mod_fastcgi.c.3329) response not received, request >sent: 7 > >22 on socket: tcp:127.0.0.1:80 for /hello?, closing connection > >2013-06-22 19:27:09: (mod_fastcgi.c.1490) released proc: pid: 0 socket: >tcp:127. > >0.0.1:80 load: 0 > > > >Immediately after, the error HTTP 500 displays on IE browser. > > > >========================================================================= > > > >What do you think is wrong here? Can you suggest me any workaround? > > > >Thanks for your time and attention. > > > >Kind regards. > > > > > > > > > > > > > > > > > > >------------------------------------------------------------------------------ >This SF.net email is sponsored by Windows: > >Build for Windows Store. > >http://p.sf.net/sfu/windows-dev2dev >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Artyom B. <art...@ya...> - 2013-06-24 19:23:50
|
I recall that issue was discussed before. It is not "leak" it is reachable code - there are some global object using locale that destroyed after main. So they are not actual leak. See: http://comments.gmane.org/gmane.comp.lib.boost.devel/239199 Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Karsten Ahnert <kar...@go...> >To: cpp...@li... >Sent: Thursday, June 20, 2013 11:49 AM >Subject: [Cppcms-users] memory leaks in hello_world > > >Hi, > >I run the Hello World application of the current cppcms with valgrind. >After stopping the application with sending SIGTERM valgrind reports >that 18k have not been correctly destroyed. Most of these blocks are >related to ICU. Is there anything I can do to cleanup memory correctly? > >Best regards, > >Karsten > > >------------------------------------------------------------------------------ >This SF.net email is sponsored by Windows: > >Build for Windows Store. > >http://p.sf.net/sfu/windows-dev2dev >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Artyom B. <art...@ya...> - 2013-06-24 19:21:28
|
You can set content type. http://cppcms.com/cppcms_ref/latest/classcppcms_1_1http_1_1response.html#a50ae55ff605bc655f5b19021f0f4f71d Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Ronnie Chowdhury <ron...@db...> >To: cpp...@li... >Sent: Wednesday, June 19, 2013 7:22 PM >Subject: [Cppcms-users] Json content type > > >How do I get cppcms to return json objects with the application/json content >type rather than text/html > >Using the 'div' example, response is received fine and if I look at the net >traffic (eg using fiddler), I note it has the correct structure but wrong >content type. > >This means jquery's ajax methods reject it with 'Invalid Content type'. Do I >need to have a mime type configured somewhere? > >Thanks > >ROnnie > > >------------------------------------------------------------------------------ >This SF.net email is sponsored by Windows: > >Build for Windows Store. > >http://p.sf.net/sfu/windows-dev2dev >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Artyom B. <art...@ya...> - 2013-06-24 19:19:51
|
Actually, I have not seen any problems with ICU version you are talking about. I think we need to try to see what exactly happended in your case, because on Ubuntu it works perfectly fine. Also why wouldn't you take the deb packages ready for Ubuntu? (I recall that was the Linux you are working on) Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Shiv Shankar Dayal <shi...@gm...> >To: Artyom Beilis <art...@ya...>; cpp...@li... >Sent: Monday, June 24, 2013 10:17 PM >Subject: Re: [Cppcms-users] CppCMS 1.0.4 Released - bug fix release > > > >Hi Artyom, > >I have not checked latest code but is the ICU build error reported a month ago or so is fixed? > > > > > >On Tue, Jun 25, 2013 at 12:40 AM, Artyom Beilis <art...@ya...> wrote: > >This is a critical bug fix release that relates to session handing in >>Internet Explorer. >> >>Added "Expires" to cookie expiration time handling that is supported by IE. >> >>Prior to this release, cppcms session cookies used max-age option, that IE >>does not recognize. Starting from this release the session cookies would >>have both Expires and Max-Age options. All browsers that use Max-Age would >>ignore Expires if both given. >> >>New options that control the session cookie properties are added, see >>expiration_method [1] that would allow to alter the behavior >>and handle possible clock skew issues >> >>Special thanks to Saikumar Gandapodi who reported me this issue. >> >> >>[1] http://cppcms.com/wikipp/en/page/cppcms_1x_config#session.cookies.expiration_method >> >>Artyom Beilis >>-------------- >>CppCMS - C++ Web Framework: http://cppcms.com/ >>CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >> >>------------------------------------------------------------------------------ >>This SF.net email is sponsored by Windows: >> >>Build for Windows Store. >> >>http://p.sf.net/sfu/windows-dev2dev >>_______________________________________________ >>Cppcms-users mailing list >>Cpp...@li... >>https://lists.sourceforge.net/lists/listinfo/cppcms-users >> > > >Respect, >Shiv > > |
|
From: Shiv S. D. <shi...@gm...> - 2013-06-24 19:19:37
|
Sure. I will search that email or try to build myself 1.0.4 and then open a ticket. On Tue, Jun 25, 2013 at 12:47 AM, Artyom Beilis <art...@ya...> wrote: > Hi, can you please open a ticket. I'll look into it? > > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > > > ----- Original Message ----- > > From: "ele...@ex..." <ele...@ex...> > > To: cpp...@li... > > Cc: > > Sent: Monday, June 17, 2013 12:47 PM > > Subject: Re: [Cppcms-users] booster::locale::as::ftime(...) sometimes > causes > wrong result > > > > Simple test: > > > > #include <booster/locale.h> > > #include <iostream> > > #include <sstream> > > > > using namespace booster::locale; > > using namespace std; > > > > int main() > > { > > generator gen; > > std::locale::global(gen("")); > > std::cout.imbue(std::locale()); > > > > string str1="2010-08-10"; > > string str2="10-08-2010"; > > > > istringstream is(str1); > > date_time dt; > > > > is >> as::ftime("%Y-%m-%d") >> dt; > > cout << as::date << dt << endl; > > > > istringstream is2(str2); > > date_time dt2; > > > > is2 >> as::ftime("%d-%m-%Y") >> dt2; > > cout << as::date << dt2 << endl; > > } > > > > Prints: > > > > [petr@petr-archlinux ~]$ ./a.out > > 10/08/2010 > > 20/12/2009 > > > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by Windows: > > > > Build for Windows Store. > > > > http://p.sf.net/sfu/windows-dev2dev > > _______________________________________________ > > Cppcms-users mailing list > > Cpp...@li... > > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > -- Best regards, Shiv Shankar Dayal |
|
From: Artyom B. <art...@ya...> - 2013-06-24 19:17:59
|
Hi, can you please open a ticket. I'll look into it? Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ ----- Original Message ----- > From: "ele...@ex..." <ele...@ex...> > To: cpp...@li... > Cc: > Sent: Monday, June 17, 2013 12:47 PM > Subject: Re: [Cppcms-users] booster::locale::as::ftime(...) sometimes causes wrong result > > Simple test: > > #include <booster/locale.h> > #include <iostream> > #include <sstream> > > using namespace booster::locale; > using namespace std; > > int main() > { > generator gen; > std::locale::global(gen("")); > std::cout.imbue(std::locale()); > > string str1="2010-08-10"; > string str2="10-08-2010"; > > istringstream is(str1); > date_time dt; > > is >> as::ftime("%Y-%m-%d") >> dt; > cout << as::date << dt << endl; > > istringstream is2(str2); > date_time dt2; > > is2 >> as::ftime("%d-%m-%Y") >> dt2; > cout << as::date << dt2 << endl; > } > > Prints: > > [petr@petr-archlinux ~]$ ./a.out > 10/08/2010 > 20/12/2009 > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
|
From: Shiv S. D. <shi...@gm...> - 2013-06-24 19:17:27
|
Hi Artyom, I have not checked latest code but is the ICU build error reported a month ago or so is fixed? On Tue, Jun 25, 2013 at 12:40 AM, Artyom Beilis <art...@ya...> wrote: > This is a critical bug fix release that relates to session handing in > Internet Explorer. > > Added "Expires" to cookie expiration time handling that is supported by IE. > > Prior to this release, cppcms session cookies used max-age option, that IE > does not recognize. Starting from this release the session cookies would > have both Expires and Max-Age options. All browsers that use Max-Age would > ignore Expires if both given. > > New options that control the session cookie properties are added, see > expiration_method [1] that would allow to alter the behavior > and handle possible clock skew issues > > Special thanks to Saikumar Gandapodi who reported me this issue. > > > [1] > http://cppcms.com/wikipp/en/page/cppcms_1x_config#session.cookies.expiration_method > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > Respect, Shiv |
|
From: Artyom B. <art...@ya...> - 2013-06-24 19:10:35
|
This is a critical bug fix release that relates to session handing in Internet Explorer. Added "Expires" to cookie expiration time handling that is supported by IE. Prior to this release, cppcms session cookies used max-age option, that IE does not recognize. Starting from this release the session cookies would have both Expires and Max-Age options. All browsers that use Max-Age would ignore Expires if both given. New options that control the session cookie properties are added, see expiration_method [1] that would allow to alter the behavior and handle possible clock skew issues Special thanks to Saikumar Gandapodi who reported me this issue. [1] http://cppcms.com/wikipp/en/page/cppcms_1x_config#session.cookies.expiration_method Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ |
|
From: Vizcayno <viz...@gm...> - 2013-06-22 23:34:50
|
Hello:
I have the next hello.cpp program:
#include <cppcms/application.h>
#include <cppcms/applications_pool.h>
#include <cppcms/service.h>
#include <cppcms/http_response.h>
#include <iostream>
class hello : public cppcms::application {
public:
hello(cppcms::service &srv) :
cppcms::application(srv)
{
}
virtual void main(std::string url);
};
void hello::main(std::string /*url*/)
{
response().out() <<
"<html>\n"
"<body>\n"
" <h1>Hello World</h1>\n"
"</body>\n"
"<script language=\"javascript\">\n"
"<!--\n"
"today = new Date();\n"
"document.write(\"<BR>The time now is: \", today.getHours(),
\":\",today.getMinutes(),\":\",today.getSeconds());\n"
"document.write(\"<BR>The date is: \", today.getDate(),\"/\",
today.getMonth()+1,\"/\",today.getFullYear());\n"
"//-->\n"
"</script>\n"
"</html>\n";
}
int main(int argc,char ** argv)
{
try {
cppcms::service srv(argc,argv);
srv.applications_pool().mount(
cppcms::applications_factory<hello>()
);
srv.run();
}
catch(std::exception const &e) {
std::cerr << e.what() << std::endl;
}
}
======================================================================
The configuration file that I called configLH.js contains:
{
"service" : {
"api" : "fastcgi",
"ip": "127.0.0.1" ,
"port" : 80
}
}
======================================================================
The configuration of lighttpd contains:
server.modules = (
"mod_access",
"mod_accesslog",
"mod_fastcgi",
"mod_rewrite",
"mod_status",
)
include "variables.conf"
include "mimetype.conf"
server.document-root = server_root + "/htdocs"
server.upload-dirs = ( temp_dir )
index-file.names =
( "index.php", "index.pl", "index.cgi", "index.cml",
"index.html", "index.htm", "default.htm" )
server.event-handler = "libev"
url.access-deny = ( "~", ".inc" )
$HTTP["url"] =~ "\.pdf$" {
server.range-requests = "disable"
}
static-file.exclude-extensions = ( ".php", ".pl", ".cgi" )
dir-listing.activate = "enable"
debug.log-file-not-found = "enable"
fastcgi.server = (
## The script name of the application
"/hello" => ((
## Command line to run
"bin-path" => "c:/apps/vcApps/cppCms/Release/hello -c
c:/apps/vcApps/cppCms/Release/configLH.js",
"host" => "127.0.0.1",
"port" => 80,
"max-procs" => 1,
"check-local" => "disable"
))
)
=========================================================================
When I invoke the lighttpd from DOS cmd I get the next results:
:lighttpd -D -f lighttpd.conf
2013-06-22 19:24:43: (log.c.166) server started
2013-06-22 19:24:43: (mod_fastcgi.c.1365) --- fastcgi spawning local
proc: c:/apps/vcApps/cppCms/Release/hello -c
c:/apps/vcApps/cppCms/Relea
se/configLH.js
port: 80
socket
max-procs: 1
2013-06-22 19:24:43: (mod_fastcgi.c.1389) --- fastcgi spawning
port: 80
socket
current: 0 / 1
========================================================================
Then I type the next in the IE browser:
http://localhost/hello
while I am waiting for an answer, the next message shows in the dos cmd
(look at the time elapsed):
2013-06-22 19:26:08: (mod_fastcgi.c.3035) got proc: pid: 0 socket:
tcp:127.0.0.1
:80 load: 1
2013-06-22 19:27:09: (mod_fastcgi.c.2543) unexpected end-of-file (perhaps
the fa
stcgi process died): pid: 0 socket: tcp:127.0.0.1:80
2013-06-22 19:27:09: (mod_fastcgi.c.3329) response not received, request
sent: 7
22 on socket: tcp:127.0.0.1:80 for /hello?, closing connection
2013-06-22 19:27:09: (mod_fastcgi.c.1490) released proc: pid: 0 socket:
tcp:127.
0.0.1:80 load: 0
Immediately after, the error HTTP 500 displays on IE browser.
=========================================================================
What do you think is wrong here? Can you suggest me any workaround?
Thanks for your time and attention.
Kind regards.
|
|
From: Artyom B. <art...@ya...> - 2013-06-22 17:01:05
|
Because by default the session does not exists and it is "ok". The only use case of load() is loading sessions in async applications that session load can be costly (sql query for example) and you don't want to load it by default. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Marcel Hellwig <ke...@co...> >To: cpp...@li... >Sent: Saturday, June 15, 2013 10:46 PM >Subject: Re: [Cppcms-users] async session > > >On 14.06.2013 17:50, Marcel Hellwig wrote: >> Hi *, >> >> I use basic HTML pages for displaying and json_rpc_server as backend for >> logic etc. >> >> What is a good/the best way to do this? >> I was trying to do that with the session interface. But how safe is >> that? How is a user indentified? Could I just return the session ID? If >> yes, how? I tried this: >After some time thinking about this my conclusion is that is not good to >return the session_cookie itself, instead I let handle cppcms the >session managment. But there is a little error in the code below, which >I was not aware of. >>> void WebAPI::login(username, password) { >>> //validation >before setting any thing to the session you have to load it via >>> session().load(); //important!!! >>> session().set("username", username); >>> session().save(); >>> >>> return_result(session().get_session_cookie()); >>> } >> But it does not work :/ >Now it works. >> I hope someone has approached this situation. >> >> Regards >> Marcel >The only weird thing is that the following worked, but it shouldn't >> if(!session().load() || !session().is_set("username")) >> { >> return_error("Invalid Session"); >> return; >> } >remember that I forgot to load the session in "login"? So at least >session().is_set should say no and give the error. Why does it no do so? > >Regards > > > >------------------------------------------------------------------------------ >This SF.net email is sponsored by Windows: > >Build for Windows Store. > >http://p.sf.net/sfu/windows-dev2dev >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |